You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by morlino <mo...@bouldercolorado.gov> on 2007/12/17 21:34:13 UTC

how to distinguish between managers when running multiple instances

I'm sorry if this has been covered before, I tried searching but didn't find
anything relevant. I'm running 4 instances of tomcat, each sharing a common
CATALINA_HOME but with a separate CATALINA_BASE. I created a
CATALINA_BASE/conf/Catalina/localhost/manager.xml file for each instance
that refers to a single copy of the manager application (
docBase="${catalina.home}/server/webapps/manager" ).

Now I am able to access the 4 managers via 4 different http connectors.
However, without looking at the port number in the browser location, or
knowing which applications are deployed under which instance it is very
difficult to distinguish which manager is which.

Is there any way to configure the manager to display a different string
based on the CATALINA_BASE or the URL that is is access by something so that
I can tell the managers apart? I was unable to find anything when I went
searching.

-Mark
-- 
View this message in context: http://www.nabble.com/how-to-distinguish-between-managers-when-running-multiple-instances-tp14374035p14374035.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: how to distinguish between managers when running multiple instances

Posted by morlino <mo...@bouldercolorado.gov>.

markt-2 wrote:
> 
> morlino wrote:
>> Now I am able to access the 4 managers via 4 different http connectors.
>> However, without looking at the port number in the browser location, or
>> knowing which applications are deployed under which instance it is very
>> difficult to distinguish which manager is which.
>> 
>> Is there any way to configure the manager to display a different string
>> based on the CATALINA_BASE or the URL that is is access by something so
>> that
>> I can tell the managers apart? I was unable to find anything when I went
>> searching.
> 
> The short answer is no. When I was using a similar configuration I just
> used the port numbers. We used a pattern so there was a simple mapping
> from
> node number to port number for http, https, shutdown, remote debug etc.
> 
> I believe there is an enhancement request floating around for this in
> bugzilla somewhere. As always, patches are welcome.
> 
> Mark
> 

Thanks Mark.

For now I have worked around the problem by copying the manager application
from CATALINA_HOME/server/webapps to each CATALINA_BASE/webapps directory
and replacing each of the manager/images/asf-logo.gif image with a custom
image that contains different text for each manager.

It is ugly but effective.
-- 
View this message in context: http://www.nabble.com/how-to-distinguish-between-managers-when-running-multiple-instances-tp14374035p14408733.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: how to distinguish between managers when running multiple instances

Posted by Mark Thomas <ma...@apache.org>.
morlino wrote:
> Now I am able to access the 4 managers via 4 different http connectors.
> However, without looking at the port number in the browser location, or
> knowing which applications are deployed under which instance it is very
> difficult to distinguish which manager is which.
> 
> Is there any way to configure the manager to display a different string
> based on the CATALINA_BASE or the URL that is is access by something so that
> I can tell the managers apart? I was unable to find anything when I went
> searching.

The short answer is no. When I was using a similar configuration I just
used the port numbers. We used a pattern so there was a simple mapping from
node number to port number for http, https, shutdown, remote debug etc.

I believe there is an enhancement request floating around for this in
bugzilla somewhere. As always, patches are welcome.

Mark


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