Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73505 invoked from network); 2 Feb 2009 14:03:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 14:03:52 -0000 Received: (qmail 87908 invoked by uid 500); 2 Feb 2009 14:03:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87877 invoked by uid 500); 2 Feb 2009 14:03: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 87866 invoked by uid 99); 2 Feb 2009 14:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 06:03:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rholme@roadrunner.com designates 75.180.132.123 as permitted sender) Received: from [75.180.132.123] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.123) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 14:03:30 +0000 Received: from [192.168.101.101] (really [24.93.147.149]) by cdptpa-omta04.mail.rr.com with ESMTP id <20090202140309.VUAE23506.cdptpa-omta04.mail.rr.com@[192.168.101.101]> for ; Mon, 2 Feb 2009 14:03:09 +0000 Subject: Re: tomcat 5 and the JVM From: Ray Holme To: Tomcat Users List In-Reply-To: References: <1233579578.6298.327.camel@rainbow.rainbowapps.com> Content-Type: text/plain Date: Mon, 02 Feb 2009 09:03:07 -0500 Message-Id: <1233583387.6298.337.camel@rainbow.rainbowapps.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org thanks - makes sense. removed the GC call as someone else put it there a long time ago also removed System.runFinalization() - assume this is not something to do in my "garbage sweep" where I check for other things. :=] On Mon, 2009-02-02 at 14:45 +0100, Kees de Kooter wrote: > Hi Ray, > > It is one JVM, but separate classloaders so applications do not "see" > classes of other apps. > > Oh and please be extremely careful with using System.gc(). Using it > can lead to severe and unexpected performance issues. If you "need" > gc() you almost always have a flaw in your code. > > Cheers, > Kees de Kooter > http://www.boplicity.net > > > > On Mon, Feb 2, 2009 at 13:59, Ray Holme wrote: > > I run tomcat 6 on Linux and have multiple applications in development > > mode. From my testing I have discovered that a Java bean shared by all > > applications and with ALL methods as static SEEMS to have a separate > > instance for each appliction - i.e. > > > > getDebugLevel() returns 0 from the 2nd application > > even if the first has set it to 100 > > > > This is useful but contrary to what I would expect. I would expect one > > JVM for all applications. If there is one per application, that too is > > cool, but it means that each application must do a > > > > System.gc() > > > > occasionally and that this routine cannot be done once for all. > > > > So, does someone know for sure - one JVM per Tomcat OR one JVM per app?? > > > > > > --------------------------------------------------------------------- > > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org