How to get% of CPU usage in Java?

0

I tried to get the percentage of CPU usage with third-party libraries and own java but I can not get it.

Can someone tell me the method to get that value from my computer's performance?

    
asked by DanBreakingNews 25.10.2016 в 00:29
source

1 answer

1

You can use the SIGAR API that has all the functionality you need for Java on different platforms. It allows you to monitor CPU consumption, memory consumption, network monitoring, file system monitoring, etc.

    
answered by 25.10.2016 в 17:44