在 JVM 5.0中调配 Garbage Collection
Tuning Garbage Collection with the 5_0 Java[tm] Virtual Machine (原文链接,如有翻译错误,感谢指出)
译者子闻 发表于:http://www.cnblogs.com/z-zw/archive/2010/09/30/1839394.html
收集整理:www.beansoft.biz WebLogic中文博客
目录:
在JVM 5.0中调配GARBAGE COLLECTION…………………………………………………………………..1
1.简介……………………………………………………………………………………………………………………………2
2.ERGONOMICS(工效学)………………………………………………………………………………………………3
3.GENERATIONS(辈分)…………………………………………………………………………………………………4
3.1性能考虑………………………………………………………………………………………………………………….7
3.2测量………………………………………………………………………………………………………………………..8
4.调整各GENERATION的容量………………………………………………………………………………………….9
4.1HEAP总量………………………………………………………………………………………………………………..10
4.2YOUNGGENERATION……………………………………………………………………………………………………..11
4.2.1Young Generation Guarantee(Young Generation的保证协议)………………………………11
5.COLLECTOR的类型……………………………………………………………………………………………………..13
5.1何时使用THROUGHPUTCOLLECTOR…………………………………………………………………………………13
5.2THETHROUGHPUTCOLLECTOR…………………………………………………………………………………………..14
5.2.1在使用the throughput collector后的各Generation………………………………………………..14
5.2.2throughput collector中的工效学………………………………………………………………………….15
5.2.2.1 各种goal的优先级………………………………………………………………………………………………….16
5.2.2.2 调整Generation 的容量…………………………………………………………………………………………..16
5.2.3Out-of-Memory的异常……………………………………………………………………………………….17
5.2.4测量Throughput Collector…………………………………………………………………………………..17
5.3何时使用CONCURRENTLOWPAUSECOLLECTOR……………………………………………………………………17
5.4THECONCURRENTLOWPAUSECOLLECTOR …………………………………………………………………………….17
5.4.1并发的开销(Overhead of Concurrency)……………………………………………………………..18
5.4.2Young Generation的保证协议(Young Generation Guarantee)………………………………18
5.4.3Full Collections(完全回收)………………………………………………………………………………19
5.4.4Floating Garbage(漂浮着的垃圾)…………………………………………………………………….19
5.4.5中断(Pauses)………………………………………………………………………………………………..19
5.4.6Concurrent Phases(并发阶段)………………………………………………………………………….19
5.4.7Scheduling a collection(计划中的回收工作)………………………………………………………20
5.4.8Scheduling pauses(计划中的中断)……………………………………………………………………20
5.4.9Incremental mode(增量模式)………………………………………………………………………….20
5.4.9.1命令行(Command line)………………………………………………………………………………………….21
5.4.9.2 推荐的I-CMS运行选项……………………………………………………………………………………………22
5.4.9.3 基本故障及排除……………………………………………………………………………………………………..22
5.4.10测量Concurrent Collector………………………………………………………………………………….23
6.其他方面的考量…………………………………………………………………………………………………………24
7.结束语………………………………………………………………………………………………………………………25

阅读全文:

转载请注明:WebLogic Android 博客 » 在JVM 5.0中调配Garbage Collection[转]