-1

In a JBoss server configuration java options are given as below.

JAVA_OPTS="-Xms128m -Xmx6144m -XX:MaxPermSize=128m

As of my understanding -Xms and -Xmx are minimum and maximum memory(RAM) allocating to JBoss to run the server. What is the meaning of -XX:MaxPermSize in this one? And what is the preferred value for this?

Sajeev
  • 783
  • 3
  • 14
  • 46

1 Answers1

2

-XX:MaxPermSize and -XX:PermSize are used to reserved memory for the permanent memory area.

This is where the class and methods definitions are stored.

It is outside the Heap.

By default, the size is 64 MB (it depends on Operating System, JVM,...).

Be aware that if you use reflection it could be full in a period short of time. So if you use Spring, be aware of this.

The best is that you activate gc log and show what happens when your app is running.

Permgen has been removed in Java 8.

Hope it helps!