作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个具有以下选项的应用程序:
-xms2g -xmx2g
我发现 init
值大于 max
和 commited
值。看来 init 值包含元空间大小。我搜索了 javadoc,但没有找到答案。您能给我相关的代码/javadoc 引用吗?
提前致谢。
最佳答案
getHeapMemoryUsage将 init 描述为设置/定义值而不是实际总和:
The used and committed size of the returned memory usage is the sum of those values of all heap memory pools whereas the init and max size of the returned memory usage represents the setting of the heap memory which may not be the sum of those of all heap memory pools.
您的设置为 2g,等于您的初始显示 2147483648
关于java - 为什么 JVM HeapMemoryUsage init 值大于 commited/max 值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59064137/
我有一个具有以下选项的应用程序: -xms2g -xmx2g 我发现 init 值大于 max 和 commited 值。看来 init 值包含元空间大小。我搜索了 javadoc,但没有找到答案。您
我是一名优秀的程序员,十分优秀!