Re: Reading CPU and Memory of a process
Monday, February 11, 2002 05:52 AM
The "Runtime" class in java.lang provides certain methods that could tell you the amount of free mekory available, total amount of memory in the Java Virtual Machine.
To check out CPU usage use the taskmanager.
P.S: Runtime is a singleton, so you have to obtain a reference of it by invoking Runtime.getRuntime().