问题描述
如何监控 Eden 和幸存者堆空间的使用情况的最佳方式是什么?
What is the best way howto monitor usage of Eden and Survivor heap spaces?
我拥有所有 GC日志记录选项,但我只能看到YoungGen职业:
I have all the GC logging options on but I can see only YoungGen occupation:
我会使用,但不能在任何地方都能找到它VisualGC附带的VisualVM默认分发版不包括在VisualGC中。到VisualGC网站的已损坏。
I would use VisualGC but cannot find its distribution anywhere. The default distribution of VisualVM that comes with JDK does not come with VisualGC. The VisualGC plugin links to the VisualGC site are broken.
更新: jstat
是我正在寻找的内容,具体来说就是:
UPDATE: jstat
is what I was looking for, specifically :
jstat -gcutil -t <pid> <interval> <number_of_samples>
推荐答案
根据monitor的含义,可能只需要。查看-gc *选项。
Depending on what you mean by "monitor", you might just need jstat. Check out the -gc* options.
这篇关于如何轻松监控伊甸园和幸存者空间的使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!