File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes CPU usage and memory usage by processes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "CPU usage and memory usage by processes" Watch "CPU usage and memory usage by processes" New topic
Author

CPU usage and memory usage by processes

aashini shah
Greenhorn

Joined: Feb 06, 2008
Posts: 8
In my project i want to currently running processes on the host with their cpu usage and memory usage as in task manager

I got the currently running processes using Runtime.geRuntime().exec("qprocess */sys");

but how can i get cpu usage and memory usage for the perticular process
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You'll not get that information from the Query Process utility. You will get it from tasklist though. Check the tasklist help for how.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CPU usage and memory usage by processes