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

Discussion in 'Java' started by Raymond Schanks, Apr 11, 2010.

  1. 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
    Raymond Schanks, Apr 11, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    456
    Raymond Hettinger
    Jul 27, 2003
  2. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,597
    Merrill & Michele
    Oct 19, 2004
  3. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    411
    jacob navia
    Oct 17, 2004
  4. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    506
    Dave Thompson
    Feb 14, 2005
  5. Bjarke Hammersholt Roune
    Replies:
    14
    Views:
    1,171
    Bjarke Hammersholt Roune
    Mar 6, 2011
Loading...

Share This Page