Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42633 invoked from network); 2 Feb 2009 13:00:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 13:00:23 -0000 Received: (qmail 17853 invoked by uid 500); 2 Feb 2009 13:00:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16919 invoked by uid 500); 2 Feb 2009 13:00:11 -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 16908 invoked by uid 99); 2 Feb 2009 13:00:11 -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:00:11 -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.121 as permitted sender) Received: from [75.180.132.121] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.121) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 13:00:02 +0000 Received: from [192.168.101.101] (really [24.93.147.149]) by cdptpa-omta02.mail.rr.com with ESMTP id <20090202125940.WGDY5582.cdptpa-omta02.mail.rr.com@[192.168.101.101]> for ; Mon, 2 Feb 2009 12:59:40 +0000 Subject: tomcat 5 and the JVM From: Ray Holme To: users@tomcat.apache.org Content-Type: text/plain Date: Mon, 02 Feb 2009 07:59:38 -0500 Message-Id: <1233579578.6298.327.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 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