Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 40814 invoked from network); 25 Apr 2006 19:54:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 19:54:50 -0000 Received: (qmail 30558 invoked by uid 500); 25 Apr 2006 19:54:44 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30508 invoked by uid 500); 25 Apr 2006 19:54:44 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30488 invoked by uid 99); 25 Apr 2006 19:54:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 12:54:44 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 12:54:43 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FYTbt-0002hP-7Y for dev@tomcat.apache.org; Tue, 25 Apr 2006 21:54:09 +0200 Received: from dhcp-128-107-147-80.cisco.com ([128.107.147.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 21:54:09 +0200 Received: from akarmakar by dhcp-128-107-147-80.cisco.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 21:54:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@tomcat.apache.org From: "Abhi Karmos" Subject: Re: Memory usage Tomcat 3.3 vs 5.5 Date: Tue, 25 Apr 2006 12:53:59 -0700 Lines: 92 Message-ID: References: <6291fc850604191409h3f294ed2p79beec73637d7930@mail.gmail.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dhcp-128-107-147-80.cisco.com X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, Following up on this thread, we took a dump of the heap running tomcat 5.5. There is no good reason for JMX to consume 9-10 Meg. 97,236 5,178,736 array of char 25,494 3,463,312 array of java/util/HashMap$Entry 105,908 3,389,056 java/util/HashMap$Entry 98,510 3,152,320 java/lang/String 98,200 2,356,800 javax/management/modelmbean/DescriptorSupport$ValueHolder 25,343 1,216,464 java/util/HashMap 348 830,888 array of byte 18,222 728,880 javax/management/modelmbean/ModelMBeanAttributeInfo 21,937 526,488 javax/management/modelmbean/DescriptorSupport Has anybody looked in the code where the DescriptorSupport class is used? 22 thousand of these things is simply absurd. Nearly 100 thousand DescriptorSupport.ValueHolder objects is even crazier. My guess is that the HashMap usage is related to the DescriptorSupport. Thanks, Abhi. OS: Linux 2.4.18 / RedHat 7.3 JVM: IBM 1.4.2 SR3 "Henri Gomez" wrote in message news:6291fc850604191409h3f294ed2p79beec73637d7930@mail.gmail.com... We're also using TC 3.3 on our production systems and are switching to TC 5.5. The memory penalty is real but you'll be using up to date and actively maintained stuff with TC 5.5. Also you could try to reduce the AJP13 / HTTP 11 threads and remove some JMX Listeners 2006/4/19, Abhi Karmos : > > Hello all, > > Sorry, could not find an answer on tomcat-users. > > We run tomcat inside an embedded system and we are planning to upgrade the > tomcat version from 3.3.1 to 5.5.16. We noticed that the memory footprint > of > a barebones tomcat 5.5 installation is 44 MB. Plain and simple Tomcat 3.3 > used to run with 25 MB. We have limited memory on our system and the > memory > usage of tomcat 5.5 is a concern for us. > > The numbers above are the resident set size (RSS) on a linux system. When > we > took the above numbers, both the tomcats had the same heap setting (min: > 25 - max: 30 mb). > > When we run our webapps, which add another 20 jars in the classpath, the > steady state memory usage is 50 MB with Tomcat 3.3 and 66 MB with Tomcat > 5.5. > > Has anyone else solved a similar problem before ? Can I try and tweak > tomcat > 5.5 to run in less memory ? Our server.xml is the minimal configuration > possible. > > Regards, > Abhi. > > OS: Linux / RedHat 7.3 > JVM: IBM 1.4.2 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org