首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

转载:怎么看懂gc日志

2013-01-01 
转载:如何看懂gc日志转自:http://stackoverflow.com/questions/895444/java-garbage-collection-log-messa

转载:如何看懂gc日志
转自:http://stackoverflow.com/questions/895444/java-garbage-collection-log-messages

PSYoungGen refers to the garbage collector in use for the minor collection. PS stands for Parallel Scavenge.
The first set of numbers are the before/after sizes of the young generation and the second set are for the entire heap. (Diagnosing a Garbage Collection problem details the format)
The name indicates the generation and collector in question, the second set are for the entire heap.
An example of an associated full GC also shows the collectors used for the old and permanent generations:

8109.128: [GC [PSYoungGen: 109884K->14201K(139904K)] 691015K->595332K(1119040K), 0.0454530 secs]

107Mb used before GC, 14Mb used after GC, max young generation size 137Mb
675Mb heap used before GC, 581Mb heap used after GC, 1Gb max heap size
minor GC occurred 8109.128 seconds since the start of the JVM and took 0.04 seconds

热点排行