JVM系列二
?
清空Eden+from survivor中所有no ref的对象占用的内存
将eden+from sur中所有存活的对象copy到to sur中
一些对象将晋升到old中:
??? to sur放不下的
??? 存活次数超过turning threshold中的
重新计算tenuring threshold(serial parallel GC会触发此项)
重新调整Eden 和from的大小(parallel GC会触发此项)
全过程暂停应用old空间不足
perm空间不足
显示调用System.GC, RMI等的定时触发
YGC时的悲观策略
dump live的内存信息时(jmap –dump:live)
参考:
http://jiangyongyuan.javaeye.com/blog/356502
http://www.helloying.com/blog/archives/164