How to get CPU, RAM and Network-Usage of a Java7 App

后端 未结 4 757
逝去的感伤
逝去的感伤 2021-01-31 12:59

I found this older article how-to-monitor-the-computers-cpu-memory-and-disk-usage-in-java and wated to ask, if there is something new in java 7. I want to get the current CPU

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 13:11

    I would use the Metrics java library: http://metrics.codahale.com/

    It comes with Sigar integration: https://github.com/cb372/metrics-sigar

提交回复
热议问题