File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CPU usage and memory usage by processes

 
aashini shah
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll not get that information from the Query Process utility. You will get it from tasklist though. Check the tasklist help for how.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic