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.
Please sign in to leave a comment.
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!"
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!
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.
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!"
Thanks for the fast response, I'll let him know!
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!
Simon Knott wrote:
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!"
Unfortunately that setting isn't enabled either - cheers for the help though.
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.
fugowie wrote:
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!"