IntelliJ memory at startup?

Is it possible to specify how much memory intelliJ should have at startup?

(so that the garbage collector not is runnning so often.)

Thomas

3 comments
Comment actions Permalink

This is quite easily done.
When you have the IDEA version that is started through a batch file, open the batch file and search for "%IDEA_JVM_ARGS%". Here the JVM parameters are set with which IDEA is started. Two of the options are of interest here : -Xms16m and -Xmx128m. The first one specifies with how much memory IDEA starts and the second specifies up to how much memory IDEA may use. You can for example set them to -Xms516m and -Xmx516m to give IDEA a constant amount of 1/2 GB RAM. This always worked fine for me.

If you use the version with the launcher (idea.exe on Windows) you'll find the same options in the idea.lax. Search for "lax.nl.java.option.additional" to find them.

0
Comment actions Permalink

rbeeger:

Perfect. Works great now.

Thanks.

0
Comment actions Permalink

Yes,

but how do you do it on Mac OSX? I've seen an idea.plist file, which would normall hold the settings, but altering the settings here makes no noticeable differance to operations.

0

Please sign in to leave a comment.