aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Java mechanism to get remote server details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java mechanism to get remote server details" Watch "Java mechanism to get remote server details" New topic
Author

Java mechanism to get remote server details

Roger Jam
Greenhorn

Joined: Mar 01, 2009
Posts: 9
Hi
I want to know whether it is possible to get CPU utilization and memory details of a remote server , from a java program. Is there any mechanism that supports this requirement ?
I am on A machine and from A i want to get the CPU utilization and memory details of server B.

Thanks in Advance,
Roge.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41820
    
  62
JMX can do this if the target machine allows it (which involves starting the JVM with the -Dcom.sun.management.jmxremote switch). Then you could point tools like jconcole or visualvm at it, or write Java code that does the same programmatically.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java mechanism to get remote server details