You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dean Chester <de...@googlemail.com> on 2010/01/07 22:47:49 UTC

Running two tomcat servers on same system?

Hi,
I am wondering if it would be possible to have two tomcat servers running on
the same system this is because some features of my software have to be on
the internal network and there is a set directory that is accessible to the
outside world. And my idea is to split the application in to two. This is so
that the public stuff can run along side the private stuff and not interfere
with each other. At present I have the IP address allowed to access the
application unblocked from accessing the port of my internal network, which
has to be changed every time the IP address changes of the one server
allowed to access it. However I could open another set of ports run another
tomcat server and host my private stuff there. Also is it possible to share
shutdown ports of tomcat servers?
Thanks in Advance
Dean Chester

Re: Running two tomcat servers on same system?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 1/7/2010 4:56 PM, Caldarale, Charles R wrote:
>> From: John Tangney [mailto:johnt@industriallogic.com]
>> Subject: Re: Running two tomcat servers on same system?
>>
>>> Also is it possible to share
>>> shutdown ports of tomcat servers?
>>
>> I am not sure. It's easy enough to give it a try.
> 
> No, it is not possible.  However if you're running on Windows, you don't actually need the shutdown port; a CTRL-C in the command prompt window or stopping the service will suffice.  Not sure about running on Linux.

Ctrl-C will work if you run Tomcat using "catalina.sh run". "kill -9"
usually works whether regardless.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktHWlgACgkQ9CaO5/Lv0PCjKACguijsnVmhEaPMrggZC+Y0cy4P
qeEAnA1joc6MOgypYIeWO1W6qwbWHdn9
=jCdN
-----END PGP SIGNATURE-----

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


RE: Running two tomcat servers on same system?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: John Tangney [mailto:johnt@industriallogic.com]
> Subject: Re: Running two tomcat servers on same system?
> 
> > Also is it possible to share
> > shutdown ports of tomcat servers?
> 
> I am not sure. It's easy enough to give it a try.

No, it is not possible.  However if you're running on Windows, you don't actually need the shutdown port; a CTRL-C in the command prompt window or stopping the service will suffice.  Not sure about running on Linux.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: Running two tomcat servers on same system?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dean Chester [mailto:dean.g.chester@googlemail.com]
> Subject: Re: Running two tomcat servers on same system?
> 
> What is usage like on the server running two application servers.

That's determined entirely by the webapps you're using.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: Running two tomcat servers on same system?

Posted by Joseph Morgan <jo...@ignitesales.com>.
Ok then, Dean, why the two entirely different app servers instead of
just two different applications in the same server?  You stated two
primary goals:  1) Separate public/private apps and 2) Not have them
interfere with one another.  A 10 hit a month app isn't going to
interfere with anything unless those hits require a huge burden of
processing.  With that said, running it within a different Tomcat
instance within the same machine isn't going to solve the problem. 


-----Original Message-----
From: Dean Chester [mailto:dean.g.chester@googlemail.com] 
Sent: Thursday, January 07, 2010 3:57 PM
To: Tomcat Users List
Subject: Re: Running two tomcat servers on same system?

What is usage like on the server running two application servers. Please
bare in mind my admin/private application might get 10 users a month.
While
the public stuff we hope more frequent.
Dean

On Thu, Jan 7, 2010 at 9:51 PM, John Tangney
<jo...@industriallogic.com>wrote:

> Dean,
>
>
> On Jan 7, 2010, at 1:47 PM, Dean Chester wrote:
>
>  I am wondering if it would be possible to have two tomcat servers
running
>> on
>> the same system
>>
>
> Yeah, we do this all the time. All you gave to do is to make sure that
all
> the ports listed in your server.xml are unique.
>
>
>  Also is it possible to share
>> shutdown ports of tomcat servers?
>>
>
> I am not sure. It's easy enough to give it a try.
>
> --johnt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: Running two tomcat servers on same system?

Posted by Dean Chester <de...@googlemail.com>.
What is usage like on the server running two application servers. Please
bare in mind my admin/private application might get 10 users a month. While
the public stuff we hope more frequent.
Dean

On Thu, Jan 7, 2010 at 9:51 PM, John Tangney <jo...@industriallogic.com>wrote:

> Dean,
>
>
> On Jan 7, 2010, at 1:47 PM, Dean Chester wrote:
>
>  I am wondering if it would be possible to have two tomcat servers running
>> on
>> the same system
>>
>
> Yeah, we do this all the time. All you gave to do is to make sure that all
> the ports listed in your server.xml are unique.
>
>
>  Also is it possible to share
>> shutdown ports of tomcat servers?
>>
>
> I am not sure. It's easy enough to give it a try.
>
> --johnt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Running two tomcat servers on same system?

Posted by John Tangney <jo...@industriallogic.com>.
Dean,

On Jan 7, 2010, at 1:47 PM, Dean Chester wrote:

> I am wondering if it would be possible to have two tomcat servers  
> running on
> the same system

Yeah, we do this all the time. All you gave to do is to make sure that  
all the ports listed in your server.xml are unique.

> Also is it possible to share
> shutdown ports of tomcat servers?

I am not sure. It's easy enough to give it a try.

--johnt

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


Re: Running two tomcat servers on same system?

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/1/8 Dean Chester <de...@googlemail.com>:
> Hi,
> I am wondering if it would be possible to have two tomcat servers running on
> the same system

Yes, it is possible.

See "Multiple Tomcat Instances" in file RUNNING.txt that comes with
a Tomcat distributive.

The next 6.0.x version will allow even more options to be configurable
per-instance.


> this is because some features of my software have to be on
> the internal network and there is a set directory that is accessible to the
> outside world. And my idea is to split the application in to two.

That is your decision. I cannot comment much on this.

One thing that you cannot achieve running a single Tomcat instance is
to use different system users to run it. From the operating system
point of view, there is a single user that runs a Java VM that
executes Tomcat. If you need different OS users, you will need
different instances of Tomcat.

If you need to limit system access from inside a single Tomcat
instance (e.g. which web applications have read/write access to which
file paths), you can run with a SecurityManager and configure your
policy according to your needs, see:
http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html

Best regards,
Konstantin Kolinko

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