• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java mechanism to get remote server details  RSS feed

 
Roger Jam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!