A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
CPU usage and memory usage by processes
Joined: Feb 06, 2008
Mar 03, 2008 03:53:00
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
Joined: Apr 14, 2004
Mar 03, 2008 04:00:00
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
subject: CPU usage and memory usage by processes
Multiple JFrames ?
resource usage after setting -verbosegc
Application Performance improvement
XML Parsing and Validation with SAX parser shoots CPU to 100% utilization
memory usage per process
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013