Re: Will be any problem if I set minSpareThreads=0 maxSpareThreads=0

2008-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vitaly, Vitaly Baranovsky 2 wrote: | 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

Re: Will be any problem if I set minSpareThreads=0 maxSpareThreads=0

2008-02-13 Thread Vitaly Baranovsky
Will this not break the application? Does it not rely on this information? No, application uses thread local only for storing temporary data. Or, are we talking about an application that incorrectly uses ThreadLocal variables and needs to be fixed without modifying the code? Yes. What

Will be any problem if I set minSpareThreads=0 maxSpareThreads=0

2008-02-12 Thread Vitaly Baranovsky 2
Hi! 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. So, workaround for me is turn off thread pool, I think. So, as far

Re: Will be any problem if I set minSpareThreads=0 maxSpareThreads=0

2008-02-12 Thread Christopher Schultz
-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

Re: Will be any problem if I set minSpareThreads=0 maxSpareThreads=0

2008-02-12 Thread Vitaly Baranovsky 2
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