-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anand,

On 4/21/2009 9:57 AM, connossieur wrote:
> 1000 threads come up by themselves. I have configured Tomcat to spawn only 70
> threads.

Something must be wrong. Your executor configuration:

     <Executor name="ThreadPool" namePrefix="catalina-exec-"
         maxThreads="70" minSpareThreads="20"/>

Does not match your thread dump:

RUNNABLE
"http-80-37" daemon prio=6 tid=0x0b094400 nid=0x540 runnable
[0x0c5be000..0x0c5bfb94]


Your thread names should start with "catalina-exec-", not "http-80-37".
So, one of several things is immediately evident:

1. Your executor is not being used.
2. Your thread dump is showing a thread from another <Connector>
   (not likely, since port 80 is the one being used by this connector)
3. Your server.xml isn't being used.

Can you post your entire server.xml? Also, please post a full thread
dump. I want to see 1000 complete stack traces, baby.

> Also, I'll look for synchronization issues in the code.

Synchronization issues will not create additional threads... they will
just cause race conditions and unpredictable behavior.

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

iEYEARECAAYFAknt3pYACgkQ9CaO5/Lv0PCsrACeKlKIl+AlpvL9oMF0aq8m1ks1
Xi8An3czoHsotx0KH1y920SXwEfkrq8r
=ig+M
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to