Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 62908 invoked from network); 2 Feb 2009 13:46: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:46:23 -0000 Received: (qmail 64521 invoked by uid 500); 2 Feb 2009 13:46:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64485 invoked by uid 500); 2 Feb 2009 13:46: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 64474 invoked by uid 99); 2 Feb 2009 13:46:11 -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 05:46: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 (athena.apache.org: domain of kdekooter@gmail.com designates 209.85.219.17 as permitted sender) Received: from [209.85.219.17] (HELO mail-ew0-f17.google.com) (209.85.219.17) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 13:46:02 +0000 Received: by ewy10 with SMTP id 10so1861869ewy.0 for ; Mon, 02 Feb 2009 05:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=73yclSKsghF3vCfidNh7LmUULjQb6odIjI/7H6G3DWY=; b=rJJV1P1GNwTD47cTqdpUGOadHyfyUiwwtpvY8/mEqE/ZoGoTmzXPDCCDH0bmfvGAmu CkA7eMU+Aqofa/MMhV3peuD1xu7GBGK9ymH1JtPN9YYfFnk2okHNftS2DJetNcLeMOTE TxPSa+QlY6xhh/OQnQq8KicXkpta5kU+Ony9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HOL32PFL7cge5d8RHsRYMJHO/Ly2c7jW3CwO7pbz5ktOYWVozzf4LnjzuL4rZ3ZdI9 7PVNBA8qp+OSOh2/veDZxoJ003QYqzA+P0Veg4onJWk0u2woCJ3NiEk0pt5Ec93DaPO3 YwmD+1jFi00ItHbqTkYp11JvMIeys40/WXYcA= MIME-Version: 1.0 Received: by 10.210.44.19 with SMTP id r19mr3576288ebr.194.1233582340763; Mon, 02 Feb 2009 05:45:40 -0800 (PST) In-Reply-To: <1233579578.6298.327.camel@rainbow.rainbowapps.com> References: <1233579578.6298.327.camel@rainbow.rainbowapps.com> Date: Mon, 2 Feb 2009 14:45:40 +0100 Message-ID: Subject: Re: tomcat 5 and the JVM From: Kees de Kooter To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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