How much heap can I reserve for JVM? Error when allocation very much heap

R

Raymond Schanks

When I call a 1.6 Java program (under WinXP) with a command like:

java -Xms5m -Xmx1200m -jar myapp.jar

Then I get errors like:

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

Why ? I have 2 GB physical memory.
Even if I would allocate more heap than physical memory then JVM should use the swap file
to put the additional heap on hard disc.

Am I right?

How can I avoid the errors above (of cause without decreasing the value) ?

Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top