gpt4 book ai didi

java - Runtime.maxMemory() 和 -Xmx

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:56:31 25 4
gpt4 key购买 nike

我原以为 Runtime.maxMemory() 会准确返回 -Xmx,但它返回的值较低。那么它返回什么?

最佳答案

The interpretation of the -Xmx flag is VM-dependent. Some VMs, including HotSpot, enforce a lower bound on the effective value of this option. The CCC proposal should not have mentioned the -Xmx flag in this way.

Reference

关于java - Runtime.maxMemory() 和 -Xmx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13729652/

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