Is there a way to get the current cpu load under Java without using the JNI?
Use the ManagementFactory to get an OperatingSystemMXBean and call getSystemLoadAverage() on it.
ManagementFactory
OperatingSystemMXBean
getSystemLoadAverage()
1.4m articles
1.4m replys
5 comments
57.0k users