1 Reply Latest reply: Feb 5, 2008 9:47 AM by 807581 RSS

    unable to set heap size to 4gb in sun java application server pe 8.2

    807581
      i have sun v890 machine with 32gb ram and solaris 10
      i am running sun java system application server platform edition 8.2
      when i am setting max heap size to 4GB
      it is giving an error

      Invalid maximum heap size -Xmx4096m
      the specified size exceeds the maximum representable size

      i want to know what i should do to increase this heap size.
      also tell me if the JVM running is 64bit. if not how can i change it
      to 64bit VM.
        • 1. Re: unable to set heap size to 4gb in sun java application server pe 8.2
          807581
          The maximum size for a 32-bit process on Solaris (any 32-bit process, not just Java) is 4GB, which includes the program text, thread stacks, and various other things in addition to the JVM heap. So the maximum heap you can expect to allocate for the appserver is about 3500MB.

          SJSAS 8.2 does not support a 64-bit JVM; SJSAS 9.1 is needed for that. However, it's very rare that a Java EE application actually needs that much memory, and the 64-bit JVM has a performance penalty vs. the standard JVM. So more heap is probably not going to make your app run any better.