Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp



Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!