Re: How to monitor client cpu information like CPU Usage, Memory, Disk space etc.., when we are using Java RMI Client Server program
Tuesday, January 13, 2004 03:03 AM
With standard java methods its not possible to get the CPU usage. Maybe there are some JNI libs wich offer such data, but then you throw the platform independencs over board.
You can only get the memory usage for the java virtual machine process, not of the complete system. Solution would be the same as above.
And you guess it, its not possible to get the free remaining disk space. you can only get the size of single files.
My suggestion is write a native prg on the clientside which gets the data when requested and communicates via tcp/udp (or soap for example) to a java gui which is the controller.