2

Application server : Jboss EAP 6
We are trying to migrate our application from Java 6 to Java 8.
In java 6 - perm gen size is 2 GB.
What is the perm gen equivalent(Meta space) value in Java 8.
I set

-XX:MetaspaceSize=2g

Is this equivalent to min permgen 2gb in Java 6?

Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228

1 Answers1

0
  • -XX:MetaspaceSize corresponds to -XX:PermSize and sets the initial size of the Metaspace area.
  • -XX:MaxMetaspaceSize corresponds to -XX:MaxPermSize and sets the maximum size. By default, there is no upper limit for Metaspace - it auto increases up to what the underlying OS can deliver. PermGen always has an upper limit, which on most JMVs defaults to 64 MB.

(There is also -XX:MinMetaspaceFreeRatio and -XX:MaxMetaspaceFreeRatio)

Mattias Jiderhamn
  • 2,053
  • 1
  • 13
  • 6