"Jukka Merinen" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all,
>
> I have a following configuration: One front-end Apache 2.2 server with 
> worker MPM that is using mod_jk 1.2 to connect to several back-end  Tomcat 
> 6.0 servers.
>
> Problem: The Apache MaxClients is 1000, whereas Tomcat AJP connector 
> maxThreads in each Tomcat is 100. If simultaneous connections to  single 
> Tomcat exceed 100, the Tomcat+mod_jk combo locks up completely.  I 
> understand that this is a known bug or limitation.
>
> What I'm asking is that is there any way to configure this kind of  system 
> so that the Tomcat maxThreads could be lower than the Apache's  MaxClients 
> with mod_jk, so that the system would return an error  message if AJP 
> connector's maxThreads is exceeded instead of locking up.
>

The recommended way to do this is to use the APR or (experimental) NIO 
AJP/1.3 Connector on the Tomcat side.  With either of these, maxThreads is 
no longer linked to the number of connections and only needs to be large 
enough to handle the expected number of simultaneous requests.

The older (and less reliable) way to do this with the default AJP/1.3 
Connector is to set a connectionTimeout in the <Connector .../> element to 
tell Tomcat to drop idle connections and free up the corresponding thread. 
You should usually enable cping/cpong in mod_jk if you are doing this to 
allow mod_jk to see cleanly that the connection has been dropped.

> This seems to be possible with HTTP connector and mod_proxy: If HTTP 
> connector's maxThreads is exceeded Tomcat simply refuses the  connection 
> and Apache returns a sane error message. But is there a way  to do it with 
> mod_jk?
>
> -Jukka
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to