Netbeans Default Options, startng jvm with more memory

This forum was posted on Sunday, May 19, 2013 9:13:02 PM

I'm facing OutOfMemoryException. I increased memory of jvm in netbeans by Project->Properties->Run->VM Options to -Xms1600M -Xmx1600M.
I'm running 32-bit java on windows 7 4GB RAM JDK Ver. 1.7 Netbeans Ver. 7.0.1
But When I execute
System.out.println("MaxMemory: " + Runtime.getRuntime().maxMemory()/1024/1024);
System.out.println("FeeMemory: " + Runtime.getRuntime().freeMemory()/1024/1024);
System.out.println("TotalMemory: " + Runtime.getRuntime().totalMemory()/1024/1024);

I get
MaxMemory: 247
FeeMemory: 14
TotalMemory: 15

I attempted to update netbeans_default_options by changinf netbeans.conf file.
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

netbeans_default_options="-J-client -J-Xss2m -J-Xmx1800m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

But It shows me JVM creation unsucessful error.
As suggested update made:
netbeans_default_options="-J-client -J-Xss2m -J-Xmx1400m -J-Xms1400m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

Still facing JVM Creation unsucessful error
Thank You in advance

 Views 150 Get Source Code >>
Related Tags:

Replies on "Netbeans Default Options, startng jvm with more memory" :

Nobody has replied on this post , be first to post answer.

Post Your Answer/Comment:

Please Login first to post Reply !

Note: Please Put Code into <code></code> block.

Threads related to "Netbeans Default Options, startng jvm with more memory":