IDEA does not start when setting idea.exe.vmoptions above 600MB heap?

Hello guys / gurus,

Have you tried setting the idea.exe.vmoptions to?

-Xms128m
-Xmx600m
-XX:MaxPermSize=512m
-ea

any set above 600m, i.e. 620m, 650m, Idea does not start. Even in earlier versions i.e. version 7 and 8.

I am running Windows XP professional and 4gb ram (since its a 32 bit, 3gb was detected and is operational)

Anyhow, when you run idea with this setting 600m heap with 512m perm size, when you look into the windows task manager, 1.6GB ram was consumed (including any other running program).  doesnt even reach 3GB.
There makes you wonder that there are still more than 1GB left of ram, but when you set -Xmx650m or higher, it does not start.

Cheers and thanks for the help!

3 comments
Comment actions Permalink

Hello Gee,

First of all, setting -XX:MaxPermSize to anything more than is necessary
to load all of IDEA's classes doesn't give any benefit. 512M is definitely
too much. You'll be able to increase -Xmx to a larger value if you set a
more reasonable MaxPermSize.

Second, because of the VM fragmentation, the maximum memory that can be allocated
by IDEA can be less than the available memory. You can usually run with larger
-Xmx if you start IDEA via idea.bat instead of idea.exe.

Hello guys / gurus,

Have you tried setting the idea.exe.vmoptions to?

-Xms128m
-Xmx600m
-XX:MaxPermSize=512m
-ea
any set above 600m, i.e. 620m, 650m, Idea does not start. Even in
earlier versions i.e. version 7 and 8.

I am running Windows XP professional and 4gb ram (since its a 32 bit,
3gb was detected and is operational)

Anyhow, when you run idea with this setting 600m heap with 512m perm
size, when you look into the windows task manager, 1.6GB ram was
consumed (including any other running program).  doesnt even reach
3GB.

There makes you wonder that there are still more than 1GB left of ram,
but when you set -Xmx650m or higher, it does not start.

Cheers and thanks for the help!

---
Original message URL:
http://www.jetbrains.net/devnet/message/5254277#5254277

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Yeah, for the second item, i noticed that too,

When I am running via idea.bat, i cound maonipulate the values for heap and run, while idea.exe des not.

Thanks Dmitry!

What do you think then would be the appropriate MaxPermSize for the IDEA in idea.exe.vmoptions?

Another question related would be, when you compile via IDEA, does it invoke a separate javac process (and therefore a separate MaxPermSize and Heap) and does not use the MaxPermSize you assigned to idea.exe.vmoptions (so that I can assign a low value less than 512M)?

Thanks again.

0
Comment actions Permalink

Regarding the first issue, see the FAQ: http://jetbrains.net/devnet/docs/DOC-1185 .

Javac compiler is a separate JVM and its memory can be controlled in Settings | Compiler. IDEA VM settings are irrelevant.

0

Please sign in to leave a comment.