How to get data processing and memory of Windows system in Java?

4

How do I in Java code show use of Windows memory and processing?

    
asked by anonymous 24.11.2015 / 00:05

1 answer

3

I believe this class can help you get all the data you want.

OperatingSystemMXBean operatingSystemMXBean = (OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean();
operatingSystemMXBean.getSystemCpuLoad();

Take a look at the complete documentation here .

    
24.11.2015 / 00:15