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?
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?
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.