当前位置:网站首页>Runtime. getRuntime(). totalMemory/maxMemory()

Runtime. getRuntime(). totalMemory/maxMemory()

2022-07-03 22:30:00 xinyihhh

totalMemory()

return Java Total memory in the virtual machine . The value returned by this method may change over time , It depends on the host environment . Be careful , The amount of memory required to save any given type of object may depend on the implementation .

maxMemory()

return Java The maximum amount of memory the virtual machine will try to use . If there are no inherent restrictions , Will return to Long.MAX_VALUE value

原网站

版权声明
本文为[xinyihhh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202142204239407.html