Is it mandatory to have -XX:PermSize in a java process?

We have Weblogic process running on JVM and it has -Xms4G -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 ... etc

Java HotSpot VM JDK is: 1.7 We have not included -XXPermSize in JAVA arguments

Question: my question is do we need to include -XXPermSize in the memory arguments or it takes from the heap memory ( Xms & Xmx ) itself?

Upvotes: 0

Views: 206

Answers (1)

haba713
haba713

Reputation: 2677

If you don't set -XX:PermSize and -XX:MaxPermSize explicitly some default values will be used. According to this article

Java 7 and earlier starts with something around 12-21 MB of the initial PermGen space

and default maximum is

  • 32-bit client JVM: 64 MB
  • 32-bit server JVM: 64 MB
  • 64-bit JVM: 82 MB

Java 8 and later has no PermGen space at all.

Upvotes: 2

Related Questions