Hi,
I want to get process related information as seen in Task Manager for windows. When process name is passed to my API, it should return a map consisting of following keys and values which will be dynamic according to process name. Example when I pass OUTLOOK.EXE to my API then it should return.
ImageName: Outlook.exe
PID: 1234
Username: xyz
CPU: 03%
Mem Usage: 22532K
Handles: 2141
Threads: 12
I was able to retrive the information upto Mem Usage through Runtime.exec("tasklist") and then parsing the output. Can some one guide me to retrive information for handles and threads. I will prefer not to use JNI.
Thanks
I want to get process related information as seen in Task Manager for windows. When process name is passed to my API, it should return a map consisting of following keys and values which will be dynamic according to process name. Example when I pass OUTLOOK.EXE to my API then it should return.
ImageName: Outlook.exe
PID: 1234
Username: xyz
CPU: 03%
Mem Usage: 22532K
Handles: 2141
Threads: 12
I was able to retrive the information upto Mem Usage through Runtime.exec("tasklist") and then parsing the output. Can some one guide me to retrive information for handles and threads. I will prefer not to use JNI.
Thanks