How to get jmap histogram programmatically?

前端 未结 1 656
谎友^
谎友^ 2020-12-31 06:33

I would like to get the equivalent of the ouput of jmap -histo programmatically, from inside the monitored application. I see triggering a binary heap dump is p

相关标签:
1条回答
  • 2020-12-31 07:22

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

    (I think it's only working on Hotspot JVMs)

    0 讨论(0)
提交回复
热议问题