Memory settings for a large project

I have recently introduced IntelliJ (7.0.1) to the project I'm working on (7000+ classes and using Hibernate and Spring) and am trying to figure out the ideal memory/gc settings for running IDEA. The development machines being used are Windows based with 3.4Ghz Xeons with 2gb RAM. I've also noticed that with certain settings in idea.exe.vmoptions IDEA fails to start without an informative error message. Rectifiying generally involves reducing the ammount of memory specified for a particular setting. If that sounds a bit vague, then it's not surprising as the behaviour is inconsistent. What I want is the best memory/gc settings for a responsive IDEA when working on a project this size.

Any advice/suggestions welcome.

Peace

Gaz

Message was edited by:
Gareth Powell

2 comments

I have a project that has 3000+ classes and associated JSPs and I use these settings (IntelliJ 7.0M2):

-Xms768m
-Xmx768m
-XX:MaxPermSize=99m
-ea
-server
-Xverify:none

My machine is a laptop with 2.0 GHZ dual-core with 2 gigs of RAM.

Also, running IntelliJ with a 1.6 VM makes a world of difference, 7.0 might use 1.6 already I am using a beta version so not sure which version of the JDK it released with (upgrade licenses are somewhere in the approval chain).

If it isn't already using a 1.6 JDK just set your IDEA_JDK environment variable to a 1.6 JDK.

0

My settings for daily usage on a 4gb dual core machine are:

-Xmx512m
-XX:MaxPermSize=199m

Gareth Powell wrote:

I have recently introduced IntelliJ to the project I'm working on (7000+ classes and using Hibernate and Spring) and am trying to figure out the ideal memory/gc settings for running IDEA. The development machines being used are Windows based with 3.4Ghz Xeons with 2gb RAM. I've also noticed that with certain settings in idea.exe.vmoptions IDEA fails to start without an informative error message. Rectifiying generally involves reducing the ammount of memory specified for a particular setting. If that sounds a bit vague, then it's not surprising as the behaviour is inconsistent. What I want is the best memory/gc settings for a responsive IDEA when working on a project this size.

Any advice/suggestions welcome.

Peace

Gaz

0

Please sign in to leave a comment.