mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
fix: 修正一处表述不清的JVM参数实例
This commit is contained in:
parent
a2b71a0ef2
commit
8f6d7e9d6d
@ -72,7 +72,7 @@ GC 调优策略中很重要的一条经验总结是这样说的:
|
||||
|
||||
另外,你还可以通过 **`-XX:NewRatio=<int>`** 来设置老年代与新生代内存的比值。
|
||||
|
||||
比如下面的参数就是设置新生代与老年代内存的比值为 2(默认值)。也就是说 young/old 所占比值为 2:1,新生代占整个堆栈的 2/3。
|
||||
比如下面的参数就是设置新生代与老年代内存的比值为 2(默认值)。也就是说 young/old 所占比值为 2,新生代占整个堆栈的 2/3。
|
||||
|
||||
```plain
|
||||
-XX:NewRatio=2
|
||||
|
Loading…
x
Reference in New Issue
Block a user