tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Rellis <>
Subject Re: worker not marked as in error when shutdown with ping mode enabled
Date Sun, 06 Jan 2013 16:18:18 GMT
On Fri, Jan 4, 2013 at 9:24 PM, Christopher Schultz <> wrote:

> Hash: SHA256
> Pid,
> On 1/4/13 3:22 PM, Pid wrote:
> > On 04/01/2013 20:08, Christopher Schultz wrote:
> >> On 1/3/13 10:54 AM, John Rellis wrote:
> >>>> I am using apache 2.2.3 and mod_jk as a load balancer for
> >>>> two tomcat 7 instances over AJP 1.3.
> >> Which exact version of mod_jk are you using? I'm guessing you
> >> are stuck on httpd 2.2.3 because of your package-manager? That's
> >> quite old.
> >
> > Some package managers report 2.2.3 despite it being a newer patch.
> ... though they usually only have the security-related patches, to
> keep things "stable".
> - -chris
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools -
> Comment: Using GnuPG with undefined -
> 8uYAnAw7UIQoBfr9elVtT2MrUYgaTMvB
> =Ttsr
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Thanks for the response.

*Which exact version of mod_jk are you using? I'm guessing you are
stuck on httpd 2.2.3 because of your package-manager? That's quite old.*

I am using mod_jk/1.2.37.  Yes, I think I installed 2.2.3 because that is
what yum installed as I am using RHEL 5.

I didn't realise it was old so maybe I should look into upgrading it.

*How long is "a few minutes"?*
I shutdown one worker and waited 10 minutes and the worker was not marked
as unavailable, which I assumed ping_mode=A would do.

*You have not set any of the following:


The default for the first one is based upon the value for
ping_timeout. The defaults for the latter two are both 0 (zero).
Therefore, all these values are 0 for your setup.

Barring any bugs in your version of mod_jk (depends upon your
version), that should effectively disable periodic connection-pinging,
leaving you with only CONNECT and PREPOST testing.

Your ping_timeout is infinite (default=0=infinite) so depending upon
exactly what is happening with your Tomcat instance, you may wait
forever to set the worker to IN_ERROR.*

As far as I was aware, setting a ping_mode of A would then in turn set a
default value of 10,000 for ping_timeout.

In turn this would then set a connection_ping_interval of 100 seconds and a
prepost_timeout of 10,000.

I gathered this information from the docs page but maybe they don't match
up with my version????

A prepost of 10,000 seems very high actually so I should probably change

These values that I expected by setting a ping_mode of A do seem to be
populated in the jkmanager.  I will change them and see if I can have any

Many thanks!


John Rellis

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message