tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Will be any problem if I set minSpareThreads=0 maxSpareThreads=0
Date Tue, 12 Feb 2008 21:59:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vitaly,

Vitaly Baranovsky 2 wrote:
| I have application developed not by me. This application adds new data to
| http threads at each requests. So, periodically there is memory overload,
| because threads are not destroyed after each request because of thread
pool.

If data is added to the thread (in ThreadLocal?) with every request,
then you will eventually fill-up memory no matter what. Setting minSpare
and maxSpare to zero is likely to result in a thread pool of size 1 (or
stop Tomcat from handling /any/ requests... I'm not sure) where the
single thread lives forever and you run out of memory anyway.

Are you able to modify the application? Perhaps thread-storage is not
ideal...

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

iEYEARECAAYFAkeyFr8ACgkQ9CaO5/Lv0PDLAgCfWOpqexEzxZNleSqxyuugoiPv
BQEAoKTsUlyYC9R8eXQiZhRU4f7BxVCk
=u8ls
-----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