Is there a maximum heap size for the sun jvm under windows?

Discussion in 'Java' started by E. Ulrich Kriegel, May 28, 2004.

  1. Hi there,
    I use the latest 1.4 version in a VMWare virual W2000 environment
    running on a 2,6GByte Linux box. The virtual machine is started with
    2448 GByte RAM, however, java crashes if I try to allocate more than
    approx 1.6GByte for the heap. Is there a limit under windows - using
    solaris that problem does not occur.

    Thanks
    --ulrich
     
    E. Ulrich Kriegel, May 28, 2004
    #1
    1. Advertisements

  2. E. Ulrich Kriegel wrote:
    > Hi there,
    > I use the latest 1.4 version in a VMWare virual W2000 environment
    > running on a 2,6GByte Linux box. The virtual machine is started with
    > 2448 GByte RAM, however, java crashes if I try to allocate more than
    > approx 1.6GByte for the heap. Is there a limit under windows - using
    > solaris that problem does not occur.
    >


    Normally Windows only allows 2GB of address space for user code and
    data. Within this 2GB comes all your code (including many DLLs) and
    data. Some versions of Windows can be configured to allow 3GB for user
    applications. So the 1.6GB limit you found is about as much as you could
    expect, especially as the JVM requires the heap to be contiguous.

    Mark Thornton
     
    Mark Thornton, May 29, 2004
    #2
    1. Advertisements

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. Kevin Hooke

    Re: Handling both MS JVM and Sun JVM

    Kevin Hooke, Aug 26, 2003, in forum: Java
    Replies:
    2
    Views:
    1,085
  2. Lasse
    Replies:
    1
    Views:
    981
    Jon A. Cruz
    Jan 5, 2004
  3. Young-Jin Lee

    MS JVM and Sun JVM problem

    Young-Jin Lee, Jan 20, 2004, in forum: Java
    Replies:
    3
    Views:
    780
    Mickey Segal
    Jan 21, 2004
  4. ezac

    Maximum Heap Size

    ezac, Jan 28, 2004, in forum: Java
    Replies:
    1
    Views:
    1,282
    jacob nikom
    Feb 10, 2004
  5. Cristian Cardenas

    Producing an Heap Dump on Sun JVM.

    Cristian Cardenas, Jun 18, 2004, in forum: Java
    Replies:
    0
    Views:
    4,587
    Cristian Cardenas
    Jun 18, 2004
  6. Replies:
    0
    Views:
    591
  7. Michal Slocinski

    Heap dump file size vs heap size

    Michal Slocinski, Mar 25, 2008, in forum: Java
    Replies:
    1
    Views:
    1,082
    GArlington
    Mar 25, 2008
  8. Raymond Schanks
    Replies:
    0
    Views:
    834
    Raymond Schanks
    Apr 11, 2010
Loading...