Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-Xmx maximum on 32 bit machine

Status
Not open for further replies.

vulcand4

Programmer
Jul 29, 2003
76
US
What is the maximum value I can specify in the -Xmx JVM parameter on a 32bit machine?

I have 4 gig of RAM on the machine, but I get the following if I specify more than -Xmx1024m:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.



I'm not using much RAM on any other processes, so there should be plenty to go around.

Any ideas?
 
See your javadocs at $JAVA_HOME/docs/technotes/guides/vm/gc-ergonomics.html (alias: %JAVA_HOME%/docs...) and $JAVA_HOME/docs/technotes/tools/$PLATFORM/java.html
maximum heap size:

Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the default maximum heap size was 64MB. You can override this default using the -Xmx command-line option.
and:
On Solaris 7 and Solaris 8 SPARC platforms, the upper limit for this value is approximately 4000m minus overhead amounts. On Solaris 2.6 and x86 platforms, the upper limit is approximately 2000m minus overhead amounts. On Linux platforms, the upper limit is approximately 2000m minus overhead amounts.

don't visit my homepage:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top