• Post Reply Bookmark Topic Watch Topic
  • New Topic

CPU usage and memory usage by processes  RSS feed

 
aashini shah
Greenhorn
Posts: 8
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!