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.
除了增加最大堆的大小,还可以用选项- XX: NewRatio增加分配给年轻代的空间份额。
The young generation, or nursery, USES a semi-space copying collector, and the old, or tenured, generation USES a concurrent mark sweep collector.
年轻(也称为婴儿(nursery))代使用一个半空间复制收集器,而老年(也称为长存的(tenured))代使用并发的标志扫描收集器。
应用推荐