tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <>
Subject Re: Tomcat 6.0.29 using more and more RAM until it collapses?
Date Thu, 11 Nov 2010 19:06:00 GMT
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.


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:
For additional commands, e-mail:

View raw message