Get memory and CPU usage

后端 未结 5 1072
失恋的感觉
失恋的感觉 2020-12-09 21:08

I would like to get the total physical memory, the CPU usage, and and the amount of memory being used. I have looked into Runtime.freeMemory(), but that isn\'t

5条回答
  •  北海茫月
    2020-12-09 21:40

    Use JMX via 'jconsole', if this if for interactive use. It displays nice realtime graphs, and lots of other diagnostic information.

提交回复
热议问题