Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 64542 invoked from network); 2 Feb 2009 13:47:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 13:47:29 -0000 Received: (qmail 67963 invoked by uid 500); 2 Feb 2009 13:47:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67938 invoked by uid 500); 2 Feb 2009 13:47:18 -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 67927 invoked by uid 99); 2 Feb 2009 13:47:18 -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 05:47:18 -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: local policy) Received: from [81.169.142.55] (HELO h556568.serverkompetenz.net) (81.169.142.55) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 13:47:10 +0000 Received: by h556568.serverkompetenz.net (Postfix, from userid 1009) id B0DFD325E0; Mon, 2 Feb 2009 14:46:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb3 (2006-10-05) on h556568.serverkompetenz.net X-Spam-Level: Received: from internetallee.de (localhost [127.0.0.1]) by h556568.serverkompetenz.net (Postfix) with ESMTP id 7E7A2325E0 for ; Mon, 2 Feb 2009 14:46:48 +0100 (CET) Received: from 212.7.177.129 (SquirrelMail authenticated user felix) by internetallee.de with HTTP; Mon, 2 Feb 2009 14:46:48 +0100 (CET) Message-ID: <11580.212.7.177.129.1233582408.squirrel@internetallee.de> In-Reply-To: <1233579578.6298.327.camel@rainbow.rainbowapps.com> References: <1233579578.6298.327.camel@rainbow.rainbowapps.com> Date: Mon, 2 Feb 2009 14:46:48 +0100 (CET) Subject: Re: tomcat 5 and the JVM From: "Felix Schumacher" To: "Tomcat Users List" User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL, SPF_HELO_PASS autolearn=ham version=3.1.7-deb3 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