Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: WHY? Tomcat 5 maxThreads too low, set to 10

David Rees

2004-02-02

Replies:

On Mon, February 2, 2004 at 2:38 pm, Parris, Edward G wrote:
> I tried a similar configuration on Tomcat 5.0.18 but noticed a ThreadPool
> warning on startup stating that my maxThreads setting was too low and that
> it would be reset to 10.
>
> WARNING: maxThreads setting (3) too low, set to 10
>
> Does anyone have any ideas how I can rectify this situation? 10 concurrent
> threads is too many (at peak each heavy-weight can consume ~1GB of
> memory). Simply increasing the memory limits is not going to do it.

10 is the hard-coded minimum set in Tomcat. You have two choices:

1. Recompile Tomcat 5, lowering the hard-coded minimum.
2. Implement a filter or some other type of synchronization in your
servlet which keeps track of the number of currently executing requests
and redirects the user to a different page with a meta refresh letting
them know that their request is being queued until the other outstanding
requests finish.

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.