Yes, data is added to ThreadLocal with every request. I can't modify this application.
Does anybody knows, how to turn off thread pool? I want threads are created before each requests and destroyed after each request. I thought minSpareThreads=0 maxSpareThreads=0 can do this... Christopher Schultz-2 wrote: > > -----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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Will-be-any-problem-if-I-set-minSpareThreads%3D0-maxSpareThreads%3D0-tp15443784p15450225.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]