Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想jmap -histo从受监视的应用程序内部以编程方式获得等效的输出。我看到可以通过 HotSpot 诊断 bean 触发堆转储,但我看不到如何获取直方图数据。是否可以 ?
jmap -histo
它可能不是最好的示例/代码,但看看这个
(我认为它只适用于 Hotspot JVM)