What is the difference between PermGen and Metaspace?

前端 未结 3 1847
醉梦人生
醉梦人生 2020-11-28 17:43

Until Java 7 there was an area in JVM memory called PermGen, where JVM used to keep its classes. In Java 8 it was removed and replaced by area called

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 18:28

    In short, Metaspace size auto increases in native memory as required to load class metadata if not restricted with -XX:MaxMetaspaceSize

提交回复
热议问题