File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes jconsole to monitor server's VM args from windows client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "jconsole to monitor server Watch "jconsole to monitor server New topic
Author

jconsole to monitor server's VM args from windows client

Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
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

Joined: May 14, 2008
Posts: 5823
    
    7

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.


JBoss In Action
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
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

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: Nov 08, 2006
Posts: 66
Thank you Peter. Now i could able to progress.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jconsole to monitor server's VM args from windows client