0

How can i get cpu usage of any application from java program using wmi query.I use jacob api for accessing wmi.

saba
  • 1
  • possible duplicate of [How to know the CPU and memory usage of a process with WMI?](http://stackoverflow.com/questions/1476018/how-to-know-the-cpu-and-memory-usage-of-a-process-with-wmi) – Helen Aug 17 '11 at 16:28

1 Answers1

0

Please take a look here: How to know the CPU and memory usage of a process with WMI?

Seems like Select Name,PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

should work for you.

Community
  • 1
  • 1
AlexR
  • 114,158
  • 16
  • 130
  • 208