目 录CONTENT

文章目录
JVM

Alpine OpenJDK镜像无法使用jamp等命令

乔克
2022-03-28 / 0 评论 / 0 点赞 / 1,290 阅读 / 528 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-03-28,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。
广告 广告

使用jattach代替。

安装jattach

apk add --no-cache jattach --repository http://mirrors.aliyun.com/alpine/latest-stable/community/

指令集:

  • load : load agent library(导入agent库)

  • properties : print system properties(打印系统属性)

  • agentProperties : print agent properties(打印agent属性)

  • datadump : show heap and thread summary(显示堆和线程概要信息)

  • threaddump : dump all stack traces (like jstack)(导出栈信息)

  • dumpheap : dump heap (like jmap)(导出堆信息)

  • inspectheap : heap histogram (like jmap -histo)(显示堆信息直方图)

  • setflag : modify manageable VM flag(修改可管理的VM参数)

  • printflag : print VM flag(打印VM参数)

  • jcmd : execute jcmd command(执行jcmd命令)

然后根据需要进行操作。

0

评论区