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

后端 未结 4 756
逝去的感伤
逝去的感伤 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条回答
  •  爱一瞬间的悲伤
    2021-01-31 13:24

    Not much has changed since then unless it was done by another group. below are some of the significant changes that were included in Java 7 SE. Sadly none of them are what you are looking for.

    http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html

    javamelody i have used before it is pretty simple and I was able to get it running in a short amount of time https://code.google.com/p/javamelody/
    http://demo.javamelody.cloudbees.net/monitoring

    below is another alternative https://github.com/oshi/oshi

    OSHI WILL NOT GIVE YOU NETWORK USAGE OR LATENCY PER PROCESS
    Check This :
    Java (Windows) - By process id, get memory usage, disk usage, network usage

提交回复
热议问题