participate


JMX - Attaching Jconsole to already running process (Remotely)
<<   Back to Forum  |   Give us Feedback
10 Duke Stars available
This topic has 2 replies on 1 page.
nileshbansal
Posts:14
Registered: 11/8/06
Attaching Jconsole to already running process (Remotely)   
Jul 30, 2007 12:28 PM

 
Hi all,

I would like to monitor the java application on our production machine. I don't want to restart the process (to start it with a port number). Is there a way that I can attach jconsole to a already running process remotely? Security is not a problem since we are behind a firewall, so I can set password authentication and SSL to false.

Also another problem with remote monitoring is that I need to assign a different port number to each VM (we have quite a few of them running on the same machine) and then remember the port number of each. Is there a way that I can have one port number for a machine, and JConsole shows a list of all VMs running on that port.

thanks
Nilesh
 
emcmanus
Posts:206
Registered: 1/27/98
Re: Attaching Jconsole to already running process (Remotely)   
Aug 1, 2007 3:17 AM (reply 1 of 2)  (In reply to original post )

 
Nilesh,

I just posted a blog entry http://weblogs.java.net/blog/emcmanus/archive/2007/08/combining_casca.html which addresses your second question. The answer to the first question is that you need to have something running on the same machine as the application that will make the application monitorable. This something could be the Master Agent I describe in my blog.

Regards,
?amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus
 
nileshbansal
Posts:14
Registered: 11/8/06
Re: Attaching Jconsole to already running process (Remotely)   
Aug 2, 2007 3:08 PM (reply 2 of 2)  (In reply to #1 )

 
thanks!
 
This topic has 2 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 26
  • Guests : 129

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums