Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jconsole to monitor server's VM args from windows client

 
Ajay Vikas
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Does anybody get a chance to monitor server's VM params from client windows using jconsole(jdk1.5). This really helps to get track of server VM consumptions of memory.

Please help me over this.

Thanks,
Ajay Vikas.
SCJP 1.4.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used JConsole to monitor a remote server. It does let you monitor heap usage, but I have found that gathering garbage collection statistics using JVM command line arguments provides a clearer picture of heap usage.

But I have the nagging suspicion that this is not what you are asking.
 
Ajay Vikas
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter for your reply.

I need the way i can start with configuring jconsole to monitor a remote server using jconsole. Please help me over this.

--
Thanks,
Ajay Vikas.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JConsole documentation gives you everything you need to do remote monitoring.

First, you have to prepare the Java application to be monitor. To do this, add the following JVM options to the command line:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=<port>
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

where <port> is any available port, for example: 9999

When you run JConsole, you can connect to the remote Java application by supplying the name or IP address of the host running the Java application and the port number.

Note that with the above instructions all monitoring is done in plain-text. If you need to encrypt the monitoring data you will have to set up SSL; the JConsole docs should help you do that.
 
Ajay Vikas
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter. Now i could able to progress.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic