Unable to run java with -Xmx > 966m

Unable to run java with -Xmx > 966m

Questions : Unable to run java with -Xmx > 966m

443

I am unable to run java if I set Xmx to 967 in4codes_windows or a higher value.

C:Documents and Settingssalesforce>java in4codes_windows -Xmx967m -version Error occurred during in4codes_windows initialization of VM Could not reserve in4codes_windows enough space for object heap Error: Could in4codes_windows not create the Java Virtual Machine. Error: in4codes_windows A fatal exception has occurred. Program will in4codes_windows exit.

If I run the same command, but setting Xmx in4codes_windows to 966, it runs correctly:

C:Documents and Settingssalesforce>java in4codes_windows -Xmx966m -version java version “1.7.0_25” in4codes_windows Java(TM) SE Runtime Environment in4codes_windows (build 1.7.0_25-b17) Java HotSpot(TM) Client in4codes_windows VM (build 23.25-b01, mixed mode)

Before executing the command 3GB of ram are in4codes_windows available (task manager).

Environment:

  • Java 1.7.0_25 32bits
  • Windows server 2003 SP2, 4GB RAM

Total Answers 1
28

Answers 1 : of Unable to run java with -Xmx > 966m

The JVM uses a bit more than just the in4codes_windows heap size for internals. That may easily in4codes_windows account for a few hundred MB depending in4codes_windows on how you configured things (perm in4codes_windows space, thread stack size, number of in4codes_windows threads, etc.). You are using the 32 bit in4codes_windows jvm so the max process size would be 2GB in4codes_windows on windows 32 bit, I believe. I believe in4codes_windows there are ways to expand that to 3GB in4codes_windows (e.g. in4codes_windows http://dwf.blogs.com/beyond_the_paper/2009/04/enabling-3gb-switch-on-windows-vista.html in4codes_windows has some explanation on this) ; but it’s in4codes_windows been a while since I was in that kind of in4codes_windows environment. So you are probably running in4codes_windows close to the limit.

0