gpt4 book ai didi

java - -Xms : Initial heap size or minimum heap size?

转载 作者:IT老高 更新时间:2023-10-28 21:14:49 27 4
gpt4 key购买 nike

-Xms是指定初始堆大小还是最小堆大小?我看到不同的观点。有些人喜欢 second answer here ,说它用于初始堆,而其他一些人说它是最小堆大小。

还是说最小尺寸本身就是初始尺寸?

最佳答案

初始堆大小是最小堆大小。它不会小于初始堆大小。

来自 Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine :

By default, the virtual machine grows or shrinks the heap at each collection to try to keep the proportion of free space to live objects at each collection within a specific range. This target range is set as a percentage by the parameters -XX:MinHeapFreeRatio= and -XX:MaxHeapFreeRatio=, and the total size is bounded below by -Xms and above by -Xmx .

关于java - -Xms : Initial heap size or minimum heap size?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1951347/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com