History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16328
Type: Performance Problem Performance Problem
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: David Hay
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Editing spring bean files pegs CPU

Created: 13 Nov 07 19:30   Updated: 15 Nov 07 01:20
Component/s: J2EE.Spring

File Attachments: 1. Zip Archive 7364_dhay_13.11.2007_09.22.06.zip (2.00 Mb)
2. Zip Archive 7549_dhay_13.11.2007_10.53.41.zip (2.14 Mb)
3. Zip Archive 7549_dhay_14.11.2007_09.41.38.zip (2.79 Mb)
4. Zip Archive 7549_dhay_14.11.2007_15.17.29.zip (3.18 Mb)

Environment:
$ uname -a
Linux dev18dt 2.6.17-1.2141_FC4smp #1 SMP Fri Jun 30 15:08:52 EDT 2006 i686 i686 i386 GNU/Linux
$ java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
$ /usr/local/jdk1.6.0_03/bin/java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

Build: 7,364


 Description  « Hide
While editing several spring bean configuration files, the CPU was maxed out. I was still able to edit, but it was definitely slower.

My project has 23 modules. The module I was working on at the time has 50 different spring configuration files 7 spring file sets and 300+ java classes.

I've attached a performance snapshot.



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Avdeev - 13 Nov 07 19:41
Please try to install the latest bugfix EAP from here: http://www.jetbrains.net/confluence/display/IDEADEV/Selena+EAP

David Hay - 13 Nov 07 20:56
The latest bugfix EAP doesn't seem to help. I'm not sure that it's specific to spring bean configuration, but perhaps to parsing and validation in general. I've attached a performance snapshot from doing Code -> Generate ... -> Getter and Setter, which also pegged the CPU briefly while showing the drop down as well as the subsequent parsing and validation after the methods were inserted into my class.

Dmitry Avdeev - 14 Nov 07 17:45
Is spring config editing still slow? If so, please attach cpu snapshot for #7549.
"Generate" actions performance is an other issue

David Hay - 14 Nov 07 19:47
Unfortunately, I still see heavy CPU usage when editing spring files...generally when it's trying to reparse/validate the file to check for errors. I've attached a new performance snapshot.

I also opened IDEA-16352 for the generate code issue...


David Hay - 15 Nov 07 01:20
Attaching another performance snapshot when parsing a 2300+ line spring bean xml file.