Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73738 invoked from network); 11 Nov 2010 19:08:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 19:08:41 -0000 Received: (qmail 68044 invoked by uid 500); 11 Nov 2010 19:09:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67836 invoked by uid 500); 11 Nov 2010 19:09:01 -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 67827 invoked by uid 99); 11 Nov 2010 19:09:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 19:09:01 +0000 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 ben@souther.us designates 69.59.22.27 as permitted sender) Received: from [69.59.22.27] (HELO earth.assortedinternet.com) (69.59.22.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 19:08:53 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=souther.us; h=Received:Subject:From:To:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding:X-Antivirus-Scanner:X-Source:X-Source-Args:X-Source-Dir; b=fW+hIBYnbQ2IzFoy1+K+1A0T3F13cEah3akZwbAltSMeBRvuojFBOwudKmqQvfk/D6gmIkB9P4ecafEUBnlC6/2gy6n7GQ0rOzpDKJSbVvNUpnmkSVxT7JFzWxuVKfLk; Received: from 75-147-4-177-newengland.hfc.comcastbusiness.net ([75.147.4.177] helo=[192.168.0.146]) by earth.assortedinternet.com with esmtpa (Exim 4.69) (envelope-from ) id 1PGcVV-0003Fb-65 for users@tomcat.apache.org; Thu, 11 Nov 2010 14:08:25 -0500 Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? From: Ben Souther To: Tomcat Users List In-Reply-To: <014f01cb81d1$d3460340$79d209c0$@yahoo.com> References: <014f01cb81d1$d3460340$79d209c0$@yahoo.com> Content-Type: text/plain Date: Thu, 11 Nov 2010 14:06:00 -0500 Message-Id: <1289502360.32281.6.camel@ben-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - earth.assortedinternet.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - souther.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org The most common cause of this, that I've seen is the failure to properly close all database connections. If you're using the container managed connection pooling, it is possible that restart your app won't free the ram consumed by any orphaned connections. Without seeing everthing you're doing everything else would be a guess. -Ben On Thu, 2010-11-11 at 13:54 -0500, Brian wrote: > Hi, > > > > In my Linux machine, I'm using the JVM version 1.6.0_11-b03. On top of that, > I only run Tomcat 6.0.29. On that Tomcat installation, I'm running a couple > of sites, both of them use exactly the same code, actually it is the same > WAR. So they are two apps, but we could consider them as one. > > The problem is that the RAM usage in the server starts to grow day by day, > until Tomcat stops (freezes? hungs?) and my two sites stop working. > According to the OS (Linux), it is the Tomcat process that is taking up all > that amount of RAM. > > When I restart Tomcat, it starts fine again, but starts to grow in memory > usage day by day again, until it crashes. > > I don't think my app is taking all this RAM, because when I restart it, the > RAM usage doesn't go down. It does only if I restart Tomcat itself, instead > of my app running there. > > It seems like if Tomcat is leaving garbage in the JVM or something like > that. > > According to the Tomcat manager application, in the "server status" page, > the JVM "total memory" value grows all the time. In this very moment, for > example, it says this: "Free memory: 178.94 MB Total memory: 565.58 MB Max > memory: 692.25 MB". The "total memory" value is the one that starts growing > when Tomcat starts. > > > > Does anybody know what should I do to solve this? > > > > Thanks! > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org