Any performance tips for IDEA5.0?

I personally feel that the IDEA performance is not as good as IDEA4.5. Are there IDEA performance tips?

Thanks very much!

21 comments
Comment actions Permalink

I personally feel that the IDEA performance is not as good as IDEA4.5.

Of course it's not good. It's simply abysmal.
Unfortunately the hardware doesn't seems to keep up with the software resource
requirements in each version. Now the slogan "by new hardware cause it's cheaper" than
optimize our software doesn't stand.

Let's hope that 5.1 will address these problems before going final.


Ahmed.

0
Comment actions Permalink

Here's my standard answer for this question because it's usually the right answer:

Buy more RAM.

What specific things are you doing that you feel IDEA doesn't perform well?

0
Comment actions Permalink

In article <23633712.1137175643834.JavaMail.itn@is.intellij.net>,
no_mail@jetbrains.com says...

I personally feel that the IDEA performance is not as good as IDEA4.5. Are there IDEA performance tips?

Thanks very much!

More ram. I went from 384 to 768 from vm allocation for idea and that
did the trick for me.
--
-


David H. McCoy


-


0
Comment actions Permalink

Long lines, working with data files (XML) that have x000 characters per line is painfully sloooow, do not even try to reformat such file otherwise you will do nothing that day.

help - if you can, run your favorite xml beautifier (I use xmllint) before you open such file

0
Comment actions Permalink

Two things. First, you could submit CPU snapshots for such files and submit a bug about it. Second, you could try turning off inspections on such files, as this might be the culprit. Click on the little Hector the Inspector guy in the status bar for big or nasty files and turn him off.

0
Comment actions Permalink

My problem with IDEA 5 is mainly due to memory leaks. I remember being able to work with IDEA for weeks without restarting, while in 5.1 EAP I have to restart many times a day because my heap fills and does not get emptied even if I close every editor, search result and so on. I would like to submit snapshots but
1) they're dreadfully slow to take
2) I can't use FTP at work (I know, I know...)

another problem I see is not directly related to IDEA, see what my gc.log showed today:

18842.885:
18848.549:
18850.742:
18852.107:
18852.665:
18973.255:
18982.961:
18983.299:
18985.647:

that is at a moment I waited two minutes for a full garbage collection to end... This is not related to IDEA, but to the JVM, and it is not even the fault of hotspot: it is mostly because of windows swapping out most of the heap, causing full GCs to be very very slow due to the disk activity. I wonder if something like the following could help IDEA too: http://suif.stanford.edu/pub/keepresident/

A different approach I sometimes think about deals with activating concurrent garbage collection: in the past I have done experiments which seemed promising. Has anyone some sort of experience with that?

0
Comment actions Permalink

I wonder if
something like the following could help IDEA too:
http://suif.stanford.edu/pub/keepresident/


You could try this jvm switch which does something similar:
-Dsun.awt.keepWorkingSetOnMinimize=true

Bas

0
Comment actions Permalink

You could try this jvm switch which does something
similar:
-Dsun.awt.keepWorkingSetOnMinimize=true


Well, actually I nearly never minimize the IDE: today when it swapped for two minutes during the garbage collection I had been working with it until when the gc started... My only problem these days is that firefox 1.5 seems to leak a lot, too, so at that moment I had no more than 80Mb of free physical memory (on a 1gb total), and windows probably decided to swap out a relatively unused part of IDEA (?).

0
Comment actions Permalink

Switch off inspections help, but still unusable.
For file of one single line 100K is from infinity (more than my patience) down to one minute. 3GHz CPU is in 90+% usage IDEA has healthy 126M of 254M memory usage. Anyway, I already learned not to use this feature.

0
Comment actions Permalink

I have this problem as well. I have 2GB of RAM, but I run very memory hungry applications like WebLogic, WebSphere, IDEA, Outlook, Firefox and the applications that I develop. When all of this is running, Windows tends to swap IDEA out to disk and when I switch back to IDEA, it spends quite a while swapping it back in.

I'm going to try that -Dsun.awt.keepWorkingSetOnMinimize optoin to see if it helps any.

0
Comment actions Permalink

Yeah, I bought more ram. It helped.

But I find cutting & pasting particularly painful. Sometimes I whip out vi to make certain changes. And I almost always use "paste simple" because that's less likely to make weird guesss about how I wanted things indented. I find that IDEA guesses wrong in well over 50% of the cases.

0
Comment actions Permalink

In article <24155244.1137724496083.JavaMail.itn@is.intellij.net>,
no_mail@jetbrains.com says...

Yeah, I bought more ram. It helped.

But I find cutting & pasting particularly painful. Sometimes I whip out vi to make certain changes. And I almost always use "paste simple" because that's less likely to make weird guesss about how I wanted things indented. I find that IDEA guesses wrong in well over 50% of the cases.

Well, with the extra ram, I am once again pleased with Idea's
performance. While I wouldn't use it to change a single file, I have no
problem open and closing projects. Besides, I always keep a text editor
running.
--
-


David H. McCoy


-


0
Comment actions Permalink

I find it takes 2-3 seconds just to add a line to a file (e.g. hitting return). Unacceptably slow.

0
Comment actions Permalink

It took me five seconds just to open a source from the project view.
Then someone suggested renaming ]]>\FileWatcher2K.dll and restarting IDEA.

Now this delay is gone.

Carsten

0
Comment actions Permalink

Have they fixed the problem where you can't use more than 768m of ram? I
have 3G in my home machine and could not set IntelliJ to use 1G

-Pete

On Thu, 19 Jan 2006 18:49:21 -0800, David H. McCoy <fake@mail.com> wrote:

In article <24155244.1137724496083.JavaMail.itn@is.intellij.net>,
no_mail@jetbrains.com says...

>> Yeah, I bought more ram. It helped.
>>
>> But I find cutting & pasting particularly painful. Sometimes I whip
>> out vi to make certain changes. And I almost always use "paste simple"
>> because that's less likely to make weird guesss about how I wanted
>> things indented. I find that IDEA guesses wrong in well over 50% of
>> the cases.
>>

Well, with the extra ram, I am once again pleased with Idea's
performance. While I wouldn't use it to change a single file, I have no
problem open and closing projects. Besides, I always keep a text editor
running.




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

0
Comment actions Permalink

I just set IntelliJ to use 1G of heap yesterday, having done a memory upgrade. What you can't seem to do is set it to use more than 1G.

--Dave Griffith

0
Comment actions Permalink

Just tried again and got the following error when I restarted

The JVM could not be started. The main method may have thrown an exception.

using 1.5.04 VM

0
Comment actions Permalink

The JVM requires a contiguous block of memory for the heap. What's probably happening is that something (most likely a DLL) is being loaded into the process address space somewhere just above the 1G mark and is causing the JVM to fail when it tries to allocate a block of memory too large to fit in below that. We've encountered this ourselves with our own Java applications.

0
Comment actions Permalink

I can start other Java applications with => 1G of heap without a problem,
just not IntelliJ. And at home with it's 3G and nothing else running it
still doesn't work.

-Pete

0
Comment actions Permalink

In article <op.s3x23zdei6m5li@epcxp-haidinyak.hightowersoftware.net>,
javaman@cox.net says...

I was able to set it to one gig at one point.

Have they fixed the problem where you can't use more than 768m of ram? I=
=

have 3G in my home machine and could not set IntelliJ to use 1G

-Pete

On Thu, 19 Jan 2006 18:49:21 -0800, David H. McCoy <fake@mail.com> wrote=
:

In article <24155244.1137724496083.JavaMail.itn@is.intellij.net>,
no_mail@jetbrains.com says...

>> Yeah, I bought more ram. It helped.
>>
>> But I find cutting & pasting particularly painful. Sometimes I whip =
=

>> out vi to make certain changes. And I almost always use "paste simpl=
e" =

>> because that's less likely to make weird guesss about how I wanted =

>> things indented. I find that IDEA guesses wrong in well over 50% of =
=

>> the cases.
>>

Well, with the extra ram, I am once again pleased with Idea's
performance. While I wouldn't use it to change a single file, I have n=

o

problem open and closing projects. Besides, I always keep a text edito=

r

running.



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


--
-


David H. McCoy


-


0
Comment actions Permalink

have 3G in my home machine and could not set IntelliJ
to use 1G


may be usefull:
some information about 2 gig process limitation:
http://dev2dev.bea.com/blog/hstahl/archive/2005/12/how_to_get_almo.html

I have 1G only so not applcable to me ;)
-m

0

Please sign in to leave a comment.