Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 60915 invoked from network); 30 May 2003 13:12:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 May 2003 13:12:01 -0000 Received: (qmail 14655 invoked by uid 97); 30 May 2003 13:14:12 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 14648 invoked from network); 30 May 2003 13:14:12 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 May 2003 13:14:12 -0000 Received: (qmail 59495 invoked by uid 500); 30 May 2003 13:11:44 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 59484 invoked from network); 30 May 2003 13:11:44 -0000 Received: from unknown (HELO JTURNER) (207.86.123.243) by daedalus.apache.org with SMTP; 30 May 2003 13:11:44 -0000 Received: from JTURNER ([127.0.0.1]) by JTURNER with Microsoft SMTPSVC(5.0.2195.5329); Fri, 30 May 2003 09:11:44 -0400 MIME-Version: 1.0 Date: Fri, 30 May 2003 09:11:44 -0400 To: Tomcat Users List Subject: Re: Multiple instances Content-Type: text/plain; charset=iso-8859-15; format=flowed References: <515A91294CBCD211B7C500508B8B2BC401301641@nemesis.bmpcoe.org> From: John Turner Message-ID: In-Reply-To: <515A91294CBCD211B7C500508B8B2BC401301641@nemesis.bmpcoe.org> User-Agent: Opera7.03/Win32 M2 build 2670 X-OriginalArrivalTime: 30 May 2003 13:11:44.0775 (UTC) FILETIME=[04C56970:01C326AD] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 30 May 2003 08:12:26 -0400, Lloyd Meinholz wrote: > I have a wrapper startup script that changes the value of CATALINA_BASE > before it calls the startup.sh script. Just have the right directories > and > files created in your CATALINA_BASE directory before you call startup.sh. > > There are a couple of problems with this that I've found. You have a lot > of > java processes running and if one of them is going haywire, you don't > have a > way of knowing which server instance is bad since they all show up as > java > in the ps -ef output. I'm trying to solve this by having a java_server1, > java_server2 etc. binaries, but am having some difficulties with that. If you're using Linux, try putting "--cols=300" in your ps command...then you can grep on server.xml or a directory name: ps -ef --cols=300 | grep java |grep some-string-here-that-means-something- to-you > Also, I've found that if you start more than just a couple of instances > simultaneously, they all fail. I have about 10 servers that get started > in a > boot script that don't start correctly if you try and start all of them > at > the same time (at least very quickly one after the other). I have to put > a > sleep between each startup call to get them to start correctly. I wrote a wrapper-wrapper that does this. It just loops through a list, and for each one, makes the appropriate calls with a sleep 5 in between. Works perfect for 22 Tomcat instances. John -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org