Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 53811 invoked from network); 26 Jan 2006 12:03:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jan 2006 12:03:23 -0000 Received: (qmail 76388 invoked by uid 500); 26 Jan 2006 12:03:19 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 76365 invoked by uid 500); 26 Jan 2006 12:03:19 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 76354 invoked by uid 99); 26 Jan 2006 12:03:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 04:03:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.126.144.2] (HELO netcetera.ch) (194.126.144.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 04:03:18 -0800 Received: from fire-05.netcetera.ch (fire-05 [172.17.1.167]) by fusion.netcetera.ch (8.11.7p1+Sun/8.7.3) with ESMTP id k0QC2tF24122 for ; Thu, 26 Jan 2006 13:02:55 +0100 (MET) Received: from localhost by fire-05.netcetera.ch (8.11.7p1+Sun) id k0QC2sc05791; Thu, 26 Jan 2006 13:02:54 +0100 (MET) Date: Thu, 26 Jan 2006 13:02:54 +0100 (MET) From: Stefan Rufer X-X-Sender: srufer@fire-05.netcetera.ch To: Jakarta Commons Developers List Subject: Re: [lang] StringUtils consumes a lot of memory ? In-Reply-To: <224f32340601251620r7e75fc99i4d83d0daf9586e82@mail.gmail.com> Message-ID: References: <224f32340601251620r7e75fc99i4d83d0daf9586e82@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thu, 26 Jan 2006, Thomas Dudziak wrote: > The problem is as follows: upon reloading a really simple webapp in > Tomcat (5.5.12, Windows XP SP2, Java 1.5.0_04-b05) 5 times, there are > 5 instances of StringUtils (or more precisely, their static fields) > still in the memory (seems Tomcat uses a different classloader for > StringUtils, but that is a different issue). I've heard about issues that objects whose static variables are not null are not garbage collected for certain JVM / classloader combinations. Tomcat suffers from this as well and this explains why you find "old" instances of StringUtils in memory. Maybe this is a starting point: http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 cu Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org