I have a Java program that I developed using Netbeans 7.0.1 to parse and save large CSV files. Due to the size of the CSV files, I needed to increase the size of the JVM heap. In 7.0.1, I set the heap size to use 4 GB of my 8 GB on my system using the -Xmx4096m specification in the Project → Properties → VM Options section of Netbeans. It worked great in 7.0.1.
Now I try to run it in Netbeans 7.1, and I get the following for output from Netbeans
Could not create the Java virtual machine.
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Java Result: 1
I have not changed anything due to defaults in Netbeans when I get this error.
I realized that maybe in 7.1 they "blocked" the heap size in the netbeans.config file, so I went there.
First I tried this:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Xmx4906m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true"
JVM Netbeans.
:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=4096m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true"
Netbeans, -, , , " ". . 5 , .
- , 7.0.1, , - . , , - ?
.