Getting Memory Statistics in Java: Runtime vs. MemoryMXBean

后端 未结 1 1390
醉梦人生
醉梦人生 2021-02-08 08:12

I am creating a scheduled executor to read the memory usage of the JVM. I have come across two ways to get memory statistics in a running JVM - Runtime & MemoryMXBean, with

相关标签:
1条回答
  • 2021-02-08 08:42

    There are none. JMX bean can be accessed externally and is meant for management tools like hyperic ( or even nagios ) - It would delegate to Runtime anyway.

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