You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Henri Gomez <hg...@apache.org> on 2003/09/24 09:48:04 UTC

JK add-ons to fix problems with HUNG tomcats...

Hi to all,

After the yesterday post of David Rees (mod_jk does not detect a hung 
Tomcat), I take a look at ajp/jk and make some works to fix the problem.

In fact the problem is in jk since the begining as jk use sockets in 
blocking mode.

The works I conducted :

- Modify ajp protocol on java side to accept a PING message (0x08).
   This message will be answered by low level ajp layer by a ..
   PONG(0x09).

- On the jk (not jk2 for now) I added 3 optional timeouts :

   a connect_timeout, which when set will send a PING request
   after connection and wait for PONG reply up to connect_timeout ms.

   a prepost_timeout, which when set will send a PING request before
   trying to send the real request to tomcat.

   in fine I added the long awaited reply_timeout, which will make
   jk wait up to reply_timeout ms before failing in error.


With such 3 timeouts (optional in workers.properties), we should be
able to detect any problem with remote tomcats and as such make a
better use of tomcat clusters via Load-Balancing.

If nobody object, I'll commit it this afternoon CET for review and
comments.

Note, that by default jk works as before....




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: AJP13 in TC 3.3.2-dev

Posted by Henri Gomez <hg...@apache.org>.
Bill Barker a écrit :

> ----- Original Message -----
> From: "Henri Gomez" <hg...@apache.org>
> To: "Tomcat Developers List" <to...@jakarta.apache.org>
> Sent: Wednesday, September 24, 2003 1:42 AM
> Subject: AJP13 in TC 3.3.2-dev
> 
> 
> 
>>Did we still use in TC 3.3.2-dev the Ajp13 code in
>>org.apache.tomcat.modules.server or the one in JTC ?
>>
> 
> 
> I only ever use the j-t-c Coyote connectors personally.  I don't recall that
> there has been an official decision, but I'd be +1 to deprecating
> o.a.t.m.server.

+1 to depreciate or even better to remove it from TC 3.3.2 dev.

Also I'd like to see Coyote/HTTP 1.1 connector used in TC 3.3.2
by default ;)



Re: AJP13 in TC 3.3.2-dev

Posted by Henri Gomez <hg...@apache.org>.
Bill Barker a écrit :

> ----- Original Message -----
> From: "Henri Gomez" <hg...@apache.org>
> To: "Tomcat Developers List" <to...@jakarta.apache.org>
> Sent: Wednesday, September 24, 2003 1:42 AM
> Subject: AJP13 in TC 3.3.2-dev
> 
> 
> 
>>Did we still use in TC 3.3.2-dev the Ajp13 code in
>>org.apache.tomcat.modules.server or the one in JTC ?
>>
> 
> 
> I only ever use the j-t-c Coyote connectors personally.  I don't recall that
> there has been an official decision, but I'd be +1 to deprecating
> o.a.t.m.server.

+1 to depreciate or even better to remove it from TC 3.3.2 dev.

Also I'd like to see Coyote/HTTP 1.1 connector used in TC 3.3.2
by default ;)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: AJP13 in TC 3.3.2-dev

Posted by Bill Barker <wb...@wilshire.com>.
----- Original Message -----
From: "Henri Gomez" <hg...@apache.org>
To: "Tomcat Developers List" <to...@jakarta.apache.org>
Sent: Wednesday, September 24, 2003 1:42 AM
Subject: AJP13 in TC 3.3.2-dev


> Did we still use in TC 3.3.2-dev the Ajp13 code in
> org.apache.tomcat.modules.server or the one in JTC ?
>

I only ever use the j-t-c Coyote connectors personally.  I don't recall that
there has been an official decision, but I'd be +1 to deprecating
o.a.t.m.server.

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


AJP13 in TC 3.3.2-dev

Posted by Henri Gomez <hg...@apache.org>.
Did we still use in TC 3.3.2-dev the Ajp13 code in 
org.apache.tomcat.modules.server or the one in JTC ?



AJP13 in TC 3.3.2-dev

Posted by Henri Gomez <hg...@apache.org>.
Did we still use in TC 3.3.2-dev the Ajp13 code in 
org.apache.tomcat.modules.server or the one in JTC ?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org