tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Hundreds of Instances
Date Mon, 03 Dec 2007 19:41:46 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Breno,

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHVFv69CaO5/Lv0PARAusIAKCsGGlEintDCawwXQygze3mpqmLdwCgjsYC
5DYtYAd92gr6nJ5DREoKJvI=
=88yd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message