Search code examples
javajvm-arguments

Java - Default value of MaxPermSize - Sun JVM


Possible Duplicate:
Default values for Xmx, Xms, MaxPermSize on non-server-class machines

We are using Sun JVM, and need to know the default value assigned to MaxPermSize

We are not passing any arguments to JVM

from this thread Why is the default size of PermGen so small? I understand that it is 64MB. Is it 64MB in all the cases or is it based on the system RAM size?


Solution

  • It does not depend on the available RAM, but it does depend on:

    • the version of the JVM that you're using -- older versions allocated less memory since computers had less RAM back then
    • the architecture (64bit requires more than 32bit, so the default memory is also bigger)
    • the actual OS configurations, since some operating systems might configure different defaults, although that's not actually the JVM that behaves differently