File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Geting CPU Usage of a Machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Geting CPU Usage of a Machine" Watch "Geting CPU Usage of a Machine" New topic
Author

Geting CPU Usage of a Machine

Sultan Al-Yahyai
Greenhorn

Joined: Nov 07, 2004
Posts: 7
Hi all,
I want to find the CPU usage of a machine in the network or the localhost. is that possible in Java? if so please help, otherwise if any one know a utility to do so please tell me. things also such as available memory / hard disk ... are intersting to me as well

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8707
    
    6

Those capabilities are very closely tied to the operating system. If you are using a friendly operating system, say Linux, you can access that information through the proc filesystem. If you are using an os that is unfriendly, say, Microsoft Windows, you will have to write native code to do the dirty work and use JNI to get it into Java..


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Geting CPU Usage of a Machine
 
Similar Threads
Geting the CPU usage of a machine
Reg:Graphs
how to check system info cpu usage in linux
Need clarification --- Avg. CPU usage data
My Apache-Tomcat eating 100% Cpu usage!!