This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java mechanism to get remote server details

 
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: 42967
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic