Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 11359 invoked from network); 21 Jan 2010 15:18:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2010 15:18:44 -0000 Received: (qmail 49065 invoked by uid 500); 21 Jan 2010 15:18:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 48993 invoked by uid 500); 21 Jan 2010 15:18:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 48982 invoked by uid 99); 21 Jan 2010 15:18:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 15:18:40 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.56] (HELO qmta06.westchester.pa.mail.comcast.net) (76.96.62.56) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 15:18:30 +0000 Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta06.westchester.pa.mail.comcast.net with comcast id YCv31d0031ap0As56FJAJP; Thu, 21 Jan 2010 15:18:10 +0000 Received: from [192.168.1.202] ([98.218.200.175]) by omta22.westchester.pa.mail.comcast.net with comcast id YFJR1d0093nZbXm3iFJR4m; Thu, 21 Jan 2010 15:18:26 +0000 Message-ID: <4B587030.7020405@christopherschultz.net> Date: Thu, 21 Jan 2010 10:18:08 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Multiple Services running on single Server instance? References: <706665.484.qm@web112514.mail.gq1.yahoo.com> In-Reply-To: <706665.484.qm@web112514.mail.gq1.yahoo.com> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ted, On 1/20/2010 7:49 PM, Ted Steiner wrote: > Is there any good reason to do this? If so, could someone please let > me know and possibly provide an example? I can think of a few reasons you might want to do this: 1. You want to test the setup of a cluster, but don't have extra physical machines laying around for such a test. 2. You want to run separate instances of one webapp (or different webapps) and be able to start/stop them independently of each other. (We do this in production so we can upgrade one application independently of the others. That includes updating server-wide JDBC drivers, Tomcat version, etc. It also insulates each webapp from bringing down the others in case there is some kind of problem like OOME). 3. You need to specify the load ordering of webapps because they depend upon each other in certain ways. Since you can't force Tomcat to load webapps in a certain order, you can run them in separate instances and start those instances in a specific order. I'm sure there are other reasons, but generally it's best in terms of resource usage to run all webapps in a single Tomcat instance. If you run multiple Tomcat instances and don't want your users to have to use non-standard HTTP port numbers, you'll have to front your Tomcats with an HTTP router (usually some kind of lb device/software or a web server). Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktYcDAACgkQ9CaO5/Lv0PABhQCfY7uPrW2EWomJiVTyTZntKM4e ad4AoJnopJMUxWnPq1PAb3AmT0HETlD3 =+cjt -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org