问题1:openj9环境使用profiler命令输出内存火焰图为空
问题现象
基于openjdk,使用-d参数控制持续60s后自动停止,使用浏览器打开html报告,内容显示正常:
[root@test arthas]# /usr/bin/java -jar arthas-boot.jar
[arthas@44794]$ profiler start -e alloc -d 60
Profiling started
profiler will silent stop after 60 seconds.
profiler output file will be: /arthas-output/20240326-171613.html
基于openjdk-openj9,同样使用-d参数控制持续60s后自动停止,使用浏览器打开html报告,内容显示空白:
[root@test arthas]# /usr/lib/openj9/bin/java -jar arthas-boot.jar
[arthas@7857]$ profiler start -e alloc -d 60
Profiling started
profiler will silent stop after 60 seconds.
profiler output file will be: /arthas-output/20240326-163013.html
解决方法
profiler对openjdk-openj9的支持还不够全面,可以通过不加-d参数,主动stop临时规避:
[root@test arthas]# /usr/lib/openj9/bin/java -jar arthas-boot.jar
[arthas@7857]$ profiler start -e alloc
Profiling started
[arthas@7857]$ profiler stop
OK
profiler output file : /arthas-output/20240326-163522.html
使用这种方法,可以正常输出基于内存的火焰图。
本文暂时没有评论,来添加一个吧(●'◡'●)