-1

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?

Community
  • 1
  • 1
Kumar D
  • 1,308
  • 5
  • 19
  • 43
  • Which version of Sun (well, Oracle) JVM? I know for sure that it is still 64 MB for 1.6.x, no idea for more recent versions, regardless of the amount of RAM (x86_64, 32bit or 64bit JVMs). – fge Jan 05 '13 at 06:20
  • @BrianRoach, the important thing I want to know is, if the value is dependent on the RAM size. – Kumar D Jan 05 '13 at 10:37

2 Answers2

4

You can find out the value of any HotSpot JVM flags / parameters by including -XX:+PrintFlagsFinal as a command line option.

The default values for many parameters depend on the JVM version, hardware/OS platform and/or physical memory size.


FWIW - on my machine the default value of MaxPermSize is 85983232 ... according to the above method.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
2

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
Sergiu Dumitriu
  • 11,455
  • 3
  • 39
  • 62