You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brett Delle Grazie <br...@gmail.com> on 2011/02/16 12:18:29 UTC

Tomcat 6 - Multiple JMX Remote Lifecycle Listeners

Hi,

I'm running Tomcat 6.0.23 and Sun Java 1.6.0.22 on RHEL 5.6 x86_64.

I've currently got one JMX Remote Lifecycle listener configured in server.xml:
	<Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
		rmiRegistryPortPlatform="X"
		rmiServerPortPlatform="X+1"
		useLocalPorts="true" /> <!-- For SSH Tunnelling -->

We use this to connect JConsole to the system via an SSH tunnel.

However I have a local system on the same lan that I would now like to use.

Can I add another listener with different ports (and no useLocalPorts="true") or
should I use rmiRegistryPort as the same or should I avoid having two of these
listeners at all.

Thanks,

-- 
Best Regards,

Brett Delle Grazie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 6 - Multiple JMX Remote Lifecycle Listeners

Posted by Brett Delle Grazie <br...@gmail.com>.
Hi,

On 16 February 2011 11:18, Brett Delle Grazie
<br...@gmail.com> wrote:
> Hi,
>
> I'm running Tomcat 6.0.23 and Sun Java 1.6.0.22 on RHEL 5.6 x86_64.
>
> I've currently got one JMX Remote Lifecycle listener configured in server.xml:
>        <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
>                rmiRegistryPortPlatform="X"
>                rmiServerPortPlatform="X+1"
>                useLocalPorts="true" /> <!-- For SSH Tunnelling -->
>
> We use this to connect JConsole to the system via an SSH tunnel.
>
> However I have a local system on the same lan that I would now like to use.
>
> Can I add another listener with different ports (and no useLocalPorts="true") or
> should I use rmiRegistryPort as the same or should I avoid having two of these
> listeners at all.

Experimentation says 'yes' it does work with different ports. I
haven't tried it using the same
RMI registry port.

>
> Thanks,
>
> --
> Best Regards,
>
> Brett Delle Grazie
>



-- 
Best Regards,

Brett Delle Grazie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org