-XX:MaxPermSize with or without -XX:PermSize

后端 未结 3 1358
别跟我提以往
别跟我提以往 2020-11-30 20:27

We\'ve run into a Java.lang.OutOfMemoryError: PermGen space error and looking at the tomcat JVM params, other than the -Xms and -Xmx

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 21:08

    If you're doing some performance tuning it's often recommended to set both -XX:PermSize and -XX:MaxPermSize to the same value to increase JVM efficiency.

    Here is some information:

    1. Support for large page heap on x86 and amd64 platforms
    2. Java Support for Large Memory Pages
    3. Setting the Permanent Generation Size

    You can also specify -XX:+CMSClassUnloadingEnabled to enable class unloading option if you are using CMS GC. It may help to decrease the probability of Java.lang.OutOfMemoryError: PermGen space

提交回复
热议问题