arthas icon indicating copy to clipboard operation
arthas copied to clipboard

memory命令最大堆内存计算疑问

Open funcy1122 opened this issue 2 years ago • 1 comments

  • [x] 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 3.6.6
  • Arthas 版本: 3.6.6
  • 操作系统版本: Ubuntu 16.04 LTS
  • 目标进程的JVM版本: jdk1.8
  • 执行arthas-boot的版本: 3.6.6

重现问题的步骤

  1. 启动arthas
  2. attach java进程
  3. 执行memory命令

运行结果:

期望的结果

堆内存计算结果:1471 + 133 + 16 * 2 = 1636m 这也是应用使用 -Xmx-Xms 配置的内存值:

实际运行的结果

堆内存计算结果:1471 + 133 + 16 = 1621m

所以只是计算了一个S区吗

funcy1122 avatar Oct 28 '22 08:10 funcy1122

你的来信已经收到,谢谢

funcy1122 avatar Nov 09 '22 15:11 funcy1122