Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73716 invoked from network); 2 Feb 2009 14:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 14:04:24 -0000 Received: (qmail 90659 invoked by uid 500); 2 Feb 2009 14:04:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90635 invoked by uid 500); 2 Feb 2009 14:04:12 -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 90624 invoked by uid 99); 2 Feb 2009 14:04:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 06:04:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rholme@roadrunner.com designates 75.180.132.122 as permitted sender) Received: from [75.180.132.122] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.122) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 14:04:04 +0000 Received: from [192.168.101.101] (really [24.93.147.149]) by cdptpa-omta02.mail.rr.com with ESMTP id <20090202140343.XLLT5582.cdptpa-omta02.mail.rr.com@[192.168.101.101]> for ; Mon, 2 Feb 2009 14:03:43 +0000 Subject: Re: tomcat 5 and the JVM From: Ray Holme To: Tomcat Users List In-Reply-To: <11580.212.7.177.129.1233582408.squirrel@internetallee.de> References: <1233579578.6298.327.camel@rainbow.rainbowapps.com> <11580.212.7.177.129.1233582408.squirrel@internetallee.de> Content-Type: text/plain Date: Mon, 02 Feb 2009 09:03:42 -0500 Message-Id: <1233583422.6298.338.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 - removed On Mon, 2009-02-02 at 14:46 +0100, Felix Schumacher wrote: > Hi Ray, > > On Mon, February 2, 2009 1:59 pm, 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. > look at > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > > > cool, but it means that each application must do a > > System.gc() > If you have to do a System.gc() by yourself, you (most) probably did > something wrong with your Bean. And be careful with that call. First the > jvm is free to ignore it. Second it can be a major performance hit. We > once found an application to call System.gc() with every get|post call. We > disabled the System.gc() functionality by starting the jvm with > -XX:+DisableExplicitGC. > > Bye > Felix > > > --------------------------------------------------------------------- > 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