tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Hundreds of Instances
Date Mon, 03 Dec 2007 19:41:46 GMT
Hash: SHA1


Breno Jacinto wrote:
>     I have an application running under Tomcat for a couple of months
> now, and itÅ› always been memory intensive (I run it in a combination
> with Apache2 + JK + Berkeley DB XML in the backend). But from a few
> days to today, it's been eating memory like crazy, and I can see that
> when I have to restart it very often - 170 Tomcat instances running!

You are probably seeing 170 threads, not 170 Tomcat instances.

>     My question is if this is related to Tomcat directly - like a
> memory leak, or if this is application / database specific.

Tomcat itself is extremely stable. This is most likely an application
problem. Perhaps your application does well with little traffic but does
not scale well. You got a burst of traffic and everything fell apart. ??

> How could
> I investigate this further? My setup:
> Debian Linux  2.6.18-5-686 #1 SMP
> Apache 2.0.54
> Tomcat 5.5.15
> JDK 1.5.0_06-b05
> BDB XML 2.2.13
> 1.5 GB of RAM

If Tomcat isn't crashing, then everything should be fine. If you are
getting OOMEs, then you need to find out what's causing you to run out
of memory. Several memory profilers are mentioned on this list all the
time. It's also not a bad idea to have the JVM record a thread dump to
stdout whenever an OOME occurs. You can find all of this information in
the list archives or google.

- -chris

Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message