Where is the right place to change VM setting ?

Hi,

I found that there are two places I can change VM setting, one is at Project Setting-> Compiler-> Java Compiler, and the other is at Contents/Info.plist (for Mac)
When I use "-Xmx1024m" option in the Info.plist to build my project I will get "The system is out of resources" but if I increase the "Maximum heap size (MB):" from Project Setting->Compiler->Java Compiler then the error will be gone. So I'm wondering should I make changes in two places or not ? How about the additional command line parameters, and where should I put them ?

Thanks,
David

2 comments

Hello David,

These are the settings for different VMs. The setting in info.plist controls
the JVM in which IDEA itself runs, and the one in Settings | Java Compiler
controls the VM in which javac runs.

I found that there are two places I can change VM setting, one is at
Project Setting-> Compiler-> Java Compiler, and the other is at
Contents/Info.plist (for Mac)

When I use "-Xmx1024m" option in the Info.plist to build my project
I will get "The system is out of resources" but if I increase the
"Maximum heap size (MB):" from +Project Setting->Compiler->Java
Compiler+ then the error will be gone. So I'm wondering should I make
changes in two places or not ? How about the additional command line
parameters, and where should I put them ?


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


0

Thanks a lot for the clarification.

David

0

Please sign in to leave a comment.