How do I in Java code show use of Windows memory and processing?
How do I in Java code show use of Windows memory and processing?
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 .