Difference in JVM heap size distribution between Netbeans 7.0.1 and 7.1?

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, , - . , , - ?

.

+3
1

, NetBeans 32- java.exe, netbeans.conf C:\Program Files (x86)\NetBeans 7.1\etc\ C:\Program Files\NetBeans 7.1\etc \ , ( jdk1.7.0_03 , ):

...
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_03"
...

...
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.7.0_03"
...

, "(x86)" Windows 32- 64- JVM. , 64- JVM - > Java. , Windows, , 32- 64-.

, - JVM, 32- 64-. : / 64- JVM, NetBeans 32- JVM, netbeans.conf, 4 .

:

  • , 64- JDK
  • , 64- JDK Java- NetBeans
  • , Project- > Properties- > Libraries- > Java Platform 64- JDK, .
+2

All Articles