Java 堆转储 - jsm-所有GC.heap_dump
根据文档,jcmd 命令没有 -all 选项。 https://docs.oracle.com/javase/ 8/docs/technotes/guides/troubleshoot/tooldescr006.html
使用 -all 选项执行 jcmd。 GC没有触发,GC日志中看不到【Full GC(Heap Dump Initiated GC)。
使用 -all 选项执行 jcmd。 GC被触发,可以在GC日志中看到【Full GC(Heap Dump Initiated GC)。
-all 选项是否有任何特定行为且文档中未提及。
There is no -all option for jcmd command as per documentation.
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html
execute jcmd with -all option. GC is not triggered and can not see [Full GC (Heap Dump Initiated GC) in GC logs.
execute jcmd with -all option. GC is triggered and can see [Full GC (Heap Dump Initiated GC) in GC logs.
Is there any specific behaviour with -all option and not mentioned in documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要获取有关 jcmd(子)命令的帮助,请使用“help command”,但请注意,您仍然必须指定 pid 以满足
jcmd
的正式命令行模式,即打印
(使用JDK 17.0.2+8测试)
To get help on a jcmd (sub)command, use “help command”, but note that you still have to specify a pid to meet
jcmd
’s formal command line pattern, i.e.which prints
(tested with JDK 17.0.2+8)