首页  

java8的方法区     所属分类 java8 浏览量 1237
移除永久代(PermGen),替换为元空间(Metaspace)
永久代中的 class metadata 转移到了 native memory(本地内存,而不是虚拟机)
永久代中的 interned Strings 和 class static variables 转移到了 Java heap
永久代参数 (PermSize MaxPermSize) -> 元空间参数(MetaspaceSize MaxMetaspaceSize)

-XX:PermSize=64MB  -XX:MaxPermSize=256MB 

-XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m

This is part of the JRockit and Hotspot convergence effort. 
JRockit customers do not need to configure the permanent generation 
(since JRockit does not have a permanent generation) 
and are accustomed to not configuring the permanent generation.

移除永久代是为融合HotSpot JVM与 JRockit VM而做出的努力,因为JRockit没有永久代,不需要配置永久代。
 
 JVM运行时数据区 

上一篇     下一篇
spring5实例之AnnotationConfigApplicationContext使用

spring Java Config 相关注解及注意点

logback pattern 配置

Hadoop不行了吗

java内存模型

spring和springboot发展历史