Intellij 5.0 project loading performance unacceptably slow

We have been using IntelliJ since 4.0 here at Alcatel, Canada, with the majority of the group using 4.5.2. Since IntelliJ 5.0 seems to be getting more stable, I decided to give it a try over the past few weeks (latest try - build# 3496).

Our project has about 29000 classes, with some classes having greater than 10000 lines (on account of being code-generated). Because of the nature of the code, and dependencies, multi-modules does not help - hence the whole source is loaded as a single-module project.

In the IntelliJ 5.0 builds that I have tried (including # 3496), initial project loading takes close to an hour and a half. The same project takes about 25 minutes in IntelliJ 4.5.2.

Subsequent project restarts are comparable. Project loads with IntelliJ 5.0 were done with ALL inspections off (just in case they were causing the slowness) whereas they were on in IntelliJ 4.5.2. Moreover, CVS updates again cause the IDE to freeze for 30+ minutes with 1 CPU pegged.

Tests were conducted on a hyper-threaded 3.0 Ghz Dell Pentium, with 3 GB of RAM (/3GB disabled), with de-fragmented MFT and disk (SATA 150). Both IDE versions were started with Xmx set to 892 Mb.

Are there any plans on addressing this? This is a major road-block for us to recommending upgrading to Intellij 5.0 internally.

3 comments
Comment actions Permalink

In the IntelliJ 5.0 builds that I have tried (including # 3496),
initial project loading takes close to an hour and a half.

Uff...,
this isn't a normal behavior for sure (I'd say 25 minutes is equally bad).
Similary sized IDEA project loads itslef in 10 minutes or so with Xmx set
to default 192m.
Could you please try to take a CPU load snapshot for the faulty process so
we can see what's wrong there?
To enable the stuff add the following line to the idea.exe.vmoptions prior
IDEA is started: -Xrunyjpagent:port=10100
Make sure it's on separate line indeed. Disable Settings|General|Reopen last
project on startup so you'll go to the 'welcome screen' as IDEA starts up.
There should be 2 additional buttons on the toolbar: one for taking memory
dump and the other for CPU profiling. Press that for CPU snapshot and open
your project normally. As the project gets loadded press the same button
again. A zipped snapshot will be saved to your user home directory. Upload
it to ftp://ftp.intellij.net/.uploads or mail to max@jetbrains.com and we'll
see how the problem could be worked around/solved.

Thanks.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

More numbers...

I just managed to drop down IDEA project loading time from 220 to 190 sec.
But you see, it wasn't that bad initially.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Thanks Max... I have sent you a CPU snapshot as requested.

0

Please sign in to leave a comment.