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()
2.1m questions
2.1m answers
60 comments
57.0k users