A generational garbage collector divides the heap into multiple generations; most JVMs use two generations, a "young" and an "old" generation.
2
蓝色箭头表示从根集或者年轻代到老对象的引用,在只收集年轻代时不需要跟踪它们。
The blue arrows represent references to old objects, either from the root set or from the young generation, which don't need to be traced when collecting only the young generation.
3
除了增加最大堆的大小,还可以用选项- XX: NewRatio增加分配给年轻代的空间份额。
In addition to increasing the maximum heap size, you can also use the -xx: NewRatio option to increase the proportion of space assigned to the young generation.