Java – how to programmatically obtain jmap histograms?

I want to programmatically get the output equivalent to jmap histo from within the monitored application I see that binary heap dump can be triggered through hotspot diagnostic bean, but I can't see how to get histogram data Is it possible?

Solution

It may not be the best example / code, but look at this

(I think it only applies to the hotspot JVM)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>