Performance in Idea-5.0, long delays, unusable...

Since I switched from idea-4.5 to idea-5.0, I've been having performance problems. There are long delays sometimes after making minor code changes. I did turn off the options to save files and reload on frame activation. I also tried increasing the allocated memory in idea.sh. Nothing helped.

This is a large project with hundreds of jar files, but it worked fine in idea-4.5. For now I'm going back to idea-4.5, but it would be nice to know if this is normal.

This is on SuSE-Linux-9.3 using Sun java version "1.4.2_07".

Thanks.

10 comments
Comment actions Permalink

Allan,

this is by no means normal and that's fairly easy to identify the cause of
the performance degradation.
Please add -Xrunyjpagent:port=10100 on a separate line to the bin/idea.vmoptions
file and relaunch idea.
You should find two additional buttons on the main toolbar. One is for taking
memory snapshot and the other one for CPU snapshot.
Press on the CPU snapshot button, do some activity in IDEA, which you think
is underperformant and press the button again. The CPU shapshot
should be saved into your home directory. Please upload it to ftp://ftp.intellij.net/.uploads
and drop me a line to max@jetbrains.com.
Let see what can be done about it.

Thanks.

-


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


0
Comment actions Permalink

One of our developers here is experiencing real issues, on Windows XP - the only difference between his machine and the rest of the developers here is that his machine's CPU is not a hyperthreaded Intel processor.

The main delays appear to be parsing the source code for the inspections, but even with only syntax checking on his machine is incredibly slow. I'll get him to put this CPU profiling on and send in his report.

I've also experienced real performance issues with debugging web applications, when hot-deploying. It can sometimes take almost 2 minutes to redeploy one class, although IDEA is redeploying the entire web application every time so maybe that's the real problem (I've noticed a few bug reports on JIRA mentioning this). Actually compiling the class occurs quickly, it seems to be the hot-swapping which is the time consuming part.

As it stands, I've had to go back to using 4.5 because the web app debugging is just too slow. It's a real shame, because I was actually finding the editor a lot more responsive in IDEA 5!

0
Comment actions Permalink

CPU profile has just been uploaded (3436_danielm_08.08.2005_17.02.40.zip) - this was editting a fairly complex Java class, with pretty much the minimum inspections enabled.

0
Comment actions Permalink

In that particular case it appears highlighting reassigned variables is performance
hog. We'll look into optimizing that. Until we've done it makes sense to
disable the feature in Settings|Color&Fonts.

-


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

CPU profile has just been uploaded
(3436_danielm_08.08.2005_17.02.40.zip) - this was editting a fairly
complex Java class, with pretty much the minimum inspections enabled.



0
Comment actions Permalink

Thanks for the fast response, I'll let him know!

0
Comment actions Permalink

Having looked at his settings he doesn't have any highlighting turned on for reassigned variables, or parameters - am I missing something, or is it possible to completely delete the setting?

Having said that, I never even knew it was possible to do this sort of highlighting, so I've learnt something new today!

0
Comment actions Permalink

Simon Knott wrote:

Having looked at his settings he doesn't have any highlighting turned on for reassigned variables, or parameters - am I missing something, or is it possible to completely delete the setting?

Having said that, I never even knew it was possible to do this sort of highlighting, so I've learnt something new today!


Maybe it's the 'Reuse of local variable' inspection in Settings > Errors
> Data flow issues?

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Unfortunately that setting isn't enabled either - cheers for the help though.

0
Comment actions Permalink

I too have been having terrible performace issues with Intellij, both with 4.5 and now that i am trying 5.0, though 5.0 is much worse. It seems to me that the problem is related to X Windows. When things get slow X is taking up large percentages of the CPU. I'm using Fedora Core 4 on a machine with dual displays on an nvidia card, set up using xinerama.

0
Comment actions Permalink

fugowie wrote:

I too have been having terrible performace issues with Intellij, both with 4.5 and now that i am trying 5.0, though 5.0 is much worse. It seems to me that the problem is related to X Windows. When things get slow X is taking up large percentages of the CPU. I'm using Fedora Core 4 on a machine with dual displays on an nvidia card, set up using xinerama.


Please use the CPU snapshot feature described by Maxim.
news://news.intellij.net:119/c8a8a1bf129fc8c769b53819982b@news.jetbrains.com

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.