You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lorenzo Maurizi - C.S.I.A. UniMC" <lo...@unimc.it> on 2015/01/30 12:22:08 UTC

Problem with mod_jk JKStatus: where is the worker "state" property?

Dear All,

I need help on an issue I'm facing. I've tried to find an answer with the
online documentation but I didn't succeed.

I am trying to fix a munin plugin for monitoring the mod_jk ajp13 connector
for apache.
The mod_jk is version 1.2.37 (the default version for the Debian Wheezy
package).
The munin plugin reads the http://localhost/jk-status?mime=prop output and
searches for the worker.<workername>.state value.

But my jk-status "mime=prop" output does not contains that "state" row,
while the State is correctly shown on HTML output of the jk-status.

I looked at the changelog of mod-jk trying to find something about a change
in the output of JKStatus, without success.

Is it a bug of mod_jk ver. 1.2.37?
Thanks in advance.
Regards.

Lorenzo M.

Output of my jk-status properties (I changed some values to anonymize it):
8<---------------------
worker.server_name=193.x.x.x
worker.server_port=80
worker.time_datetime=20150130121721
worker.time_tz=CET
worker.time_unix=1422616641
worker.web_server=Apache/2.2.22 (Debian) mod_jk/1.2.37 mod_ssl/2.2.22
OpenSSL/1.0.1e
worker.jk_version=mod_jk/1.2.37
worker.ajp_count=1
worker.ajp13.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.address=127.0.0.1:8009
worker.ajp13.connection_pool_timeout=1300
worker.ajp13.ping_timeout=10000
worker.ajp13.connect_timeout=0
worker.ajp13.prepost_timeout=0
worker.ajp13.reply_timeout=0
worker.ajp13.retries=2
worker.ajp13.connection_ping_interval=0
worker.ajp13.recovery_options=0
worker.ajp13.max_packet_size=8192
worker.ajp13.used=174
worker.ajp13.errors=0
worker.ajp13.client_errors=0
worker.ajp13.reply_timeouts=0
worker.ajp13.transferred=5197555
worker.ajp13.read=121336154
worker.ajp13.busy=0
worker.ajp13.max_busy=1
worker.ajp13.connected=2
worker.ajp13.map_count=9
worker.ajp13.last_reset_at=1422616434
worker.ajp13.last_reset_ago=207
worker.ajp13.map.1.server=x.x.x [*:443]
worker.ajp13.map.1.uri=/olat/raw/extensions/*
worker.ajp13.map.1.type=Unmount Wildchar
worker.ajp13.map.1.source=JkMount
worker.ajp13.map.1.reply_timeout=-1
worker.ajp13.map.1.sticky_ignore=0
worker.ajp13.map.1.stateless=0
worker.ajp13.map.1.fail_on_status=
worker.ajp13.map.1.active=
worker.ajp13.map.1.disabled=
worker.ajp13.map.1.stopped=
worker.ajp13.map.1.use_server_errors=0
worker.ajp13.map.2.server=x.x.x [*:443]
worker.ajp13.map.2.uri=/olat/raw/images/*
worker.ajp13.map.2.type=Unmount Wildchar
worker.ajp13.map.2.source=JkMount
worker.ajp13.map.2.reply_timeout=-1
worker.ajp13.map.2.sticky_ignore=0
worker.ajp13.map.2.stateless=0
worker.ajp13.map.2.fail_on_status=
worker.ajp13.map.2.active=
worker.ajp13.map.2.disabled=
worker.ajp13.map.2.stopped=
worker.ajp13.map.2.use_server_errors=0
worker.ajp13.map.3.server=x.x.x [*:443]
worker.ajp13.map.3.uri=/olat/raw/css/*
worker.ajp13.map.3.type=Unmount Wildchar
worker.ajp13.map.3.source=JkMount
worker.ajp13.map.3.reply_timeout=-1
worker.ajp13.map.3.sticky_ignore=0
worker.ajp13.map.3.stateless=0
worker.ajp13.map.3.fail_on_status=
worker.ajp13.map.3.active=
worker.ajp13.map.3.disabled=
worker.ajp13.map.3.stopped=
worker.ajp13.map.3.use_server_errors=0
worker.ajp13.map.4.server=x.x.x [*:443]
worker.ajp13.map.4.uri=/olat/raw/js/*
worker.ajp13.map.4.type=Unmount Wildchar
worker.ajp13.map.4.source=JkMount
worker.ajp13.map.4.reply_timeout=-1
worker.ajp13.map.4.sticky_ignore=0
worker.ajp13.map.4.stateless=0
worker.ajp13.map.4.fail_on_status=
worker.ajp13.map.4.active=
worker.ajp13.map.4.disabled=
worker.ajp13.map.4.stopped=
worker.ajp13.map.4.use_server_errors=0
worker.ajp13.map.5.server=x.x.x [*:443]
worker.ajp13.map.5.uri=/olat/raw/extensions*
worker.ajp13.map.5.type=Unmount Wildchar
worker.ajp13.map.5.source=JkMount
worker.ajp13.map.5.reply_timeout=-1
worker.ajp13.map.5.sticky_ignore=0
worker.ajp13.map.5.stateless=0
worker.ajp13.map.5.fail_on_status=
worker.ajp13.map.5.active=
worker.ajp13.map.5.disabled=
worker.ajp13.map.5.stopped=
worker.ajp13.map.5.use_server_errors=0
worker.ajp13.map.6.server=x.x.x [*:443]
worker.ajp13.map.6.uri=/olat/raw/images*
worker.ajp13.map.6.type=Unmount Wildchar
worker.ajp13.map.6.source=JkMount
worker.ajp13.map.6.reply_timeout=-1
worker.ajp13.map.6.sticky_ignore=0
worker.ajp13.map.6.stateless=0
worker.ajp13.map.6.fail_on_status=
worker.ajp13.map.6.active=
worker.ajp13.map.6.disabled=
worker.ajp13.map.6.stopped=
worker.ajp13.map.6.use_server_errors=0
worker.ajp13.map.7.server=x.x.x [*:443]
worker.ajp13.map.7.uri=/olat/raw/js*
worker.ajp13.map.7.type=Unmount Wildchar
worker.ajp13.map.7.source=JkMount
worker.ajp13.map.7.reply_timeout=-1
worker.ajp13.map.7.sticky_ignore=0
worker.ajp13.map.7.stateless=0
worker.ajp13.map.7.fail_on_status=
worker.ajp13.map.7.active=
worker.ajp13.map.7.disabled=
worker.ajp13.map.7.stopped=
worker.ajp13.map.7.use_server_errors=0
worker.ajp13.map.8.server=x.x.x [*:443]
worker.ajp13.map.8.uri=/olat/*
worker.ajp13.map.8.type=Wildchar
worker.ajp13.map.8.source=JkMount
worker.ajp13.map.8.reply_timeout=-1
worker.ajp13.map.8.sticky_ignore=0
worker.ajp13.map.8.stateless=0
worker.ajp13.map.8.fail_on_status=
worker.ajp13.map.8.active=
worker.ajp13.map.8.disabled=
worker.ajp13.map.8.stopped=
worker.ajp13.map.8.use_server_errors=0
worker.ajp13.map.9.server=x.x.x [*:443]
worker.ajp13.map.9.uri=/olat
worker.ajp13.map.9.type=Exact
worker.ajp13.map.9.source=JkMount
worker.ajp13.map.9.reply_timeout=-1
worker.ajp13.map.9.sticky_ignore=0
worker.ajp13.map.9.stateless=0
worker.ajp13.map.9.fail_on_status=
worker.ajp13.map.9.active=
worker.ajp13.map.9.disabled=
worker.ajp13.map.9.stopped=
worker.ajp13.map.9.use_server_errors=0
worker.result.type=OK
worker.result.message=Action finished
8<-------------------



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


Re: Problem with mod_jk JKStatus: where is the worker "state" property?

Posted by André Warnier <aw...@ice-sa.com>.
Rainer Jung wrote:
...


> state is only printed of the worker is a member of a load balancer. 
> Otherwise there is no such thing as state. It is good practise to wrap 
> even a single worker in a load balancer because of its enhanced failure 
> detection and reporting. Even if you don't have a second worker to fail 
> over.
> 

Maybe it is worth adding this to the mod_jk documentation somewhere ?
(If it isn't already there, but I didn't find it)

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


RE: Problem with mod_jk JKStatus: where is the worker "state" property?

Posted by "Lorenzo Maurizi - C.S.I.A. UniMC" <lo...@unimc.it>.
>Hi Lorenzo,

>Am 30.01.2015 um 12:22 schrieb Lorenzo Maurizi - C.S.I.A. UniMC:
>> Dear All,
>>
>> I need help on an issue I'm facing. I've tried to find an answer with 
>> the online documentation but I didn't succeed.
>>
>> I am trying to fix a munin plugin for monitoring the mod_jk ajp13 
>> connector for apache.
>> The mod_jk is version 1.2.37 (the default version for the Debian 
>> Wheezy package).
>> The munin plugin reads the http://localhost/jk-status?mime=prop output 
>> and searches for the worker.<workername>.state value.
>>
>> But my jk-status "mime=prop" output does not contains that "state" 
>> row, while the State is correctly shown on HTML output of the jk-status.
>>
>> I looked at the changelog of mod-jk trying to find something about a 
>> change in the output of JKStatus, without success.
>>
>> Is it a bug of mod_jk ver. 1.2.37?

>state is only printed of the worker is a member of a load balancer. 
>Otherwise there is no such thing as state. It is good practise to wrap even a single worker in a load balancer because of its enhanced failure detection and reporting. Even if you don't have a second >worker to fail over.

>HTH
>Rainer

Thank you very much for your help, I added a loadbalancer worker and it now works as expected!

Best regards!
Lorenzo M.


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


Re: Problem with mod_jk JKStatus: where is the worker "state" property?

Posted by Rainer Jung <ra...@kippdata.de>.
Hi Lorenzo,

Am 30.01.2015 um 12:22 schrieb Lorenzo Maurizi - C.S.I.A. UniMC:
> Dear All,
>
> I need help on an issue I'm facing. I've tried to find an answer with the
> online documentation but I didn't succeed.
>
> I am trying to fix a munin plugin for monitoring the mod_jk ajp13 connector
> for apache.
> The mod_jk is version 1.2.37 (the default version for the Debian Wheezy
> package).
> The munin plugin reads the http://localhost/jk-status?mime=prop output and
> searches for the worker.<workername>.state value.
>
> But my jk-status "mime=prop" output does not contains that "state" row,
> while the State is correctly shown on HTML output of the jk-status.
>
> I looked at the changelog of mod-jk trying to find something about a change
> in the output of JKStatus, without success.
>
> Is it a bug of mod_jk ver. 1.2.37?

state is only printed of the worker is a member of a load balancer. 
Otherwise there is no such thing as state. It is good practise to wrap 
even a single worker in a load balancer because of its enhanced failure 
detection and reporting. Even if you don't have a second worker to fail 
over.

HTH

Rainer

> Output of my jk-status properties (I changed some values to anonymize it):
> 8<---------------------
> worker.server_name=193.x.x.x
> worker.server_port=80
> worker.time_datetime=20150130121721
> worker.time_tz=CET
> worker.time_unix=1422616641
> worker.web_server=Apache/2.2.22 (Debian) mod_jk/1.2.37 mod_ssl/2.2.22
> OpenSSL/1.0.1e
> worker.jk_version=mod_jk/1.2.37
> worker.ajp_count=1
> worker.ajp13.list=ajp13
> worker.ajp13.type=ajp13
> worker.ajp13.host=localhost
> worker.ajp13.port=8009
> worker.ajp13.address=127.0.0.1:8009
> worker.ajp13.connection_pool_timeout=1300
> worker.ajp13.ping_timeout=10000
> worker.ajp13.connect_timeout=0
> worker.ajp13.prepost_timeout=0
> worker.ajp13.reply_timeout=0
> worker.ajp13.retries=2
> worker.ajp13.connection_ping_interval=0
> worker.ajp13.recovery_options=0
> worker.ajp13.max_packet_size=8192
> worker.ajp13.used=174
> worker.ajp13.errors=0
> worker.ajp13.client_errors=0
> worker.ajp13.reply_timeouts=0
> worker.ajp13.transferred=5197555
> worker.ajp13.read=121336154
> worker.ajp13.busy=0
> worker.ajp13.max_busy=1
> worker.ajp13.connected=2
> worker.ajp13.map_count=9
> worker.ajp13.last_reset_at=1422616434
> worker.ajp13.last_reset_ago=207
> worker.ajp13.map.1.server=x.x.x [*:443]
> worker.ajp13.map.1.uri=/olat/raw/extensions/*
> worker.ajp13.map.1.type=Unmount Wildchar
> worker.ajp13.map.1.source=JkMount
> worker.ajp13.map.1.reply_timeout=-1
> worker.ajp13.map.1.sticky_ignore=0
> worker.ajp13.map.1.stateless=0
> worker.ajp13.map.1.fail_on_status=
> worker.ajp13.map.1.active=
> worker.ajp13.map.1.disabled=
> worker.ajp13.map.1.stopped=
> worker.ajp13.map.1.use_server_errors=0
> worker.ajp13.map.2.server=x.x.x [*:443]
> worker.ajp13.map.2.uri=/olat/raw/images/*
> worker.ajp13.map.2.type=Unmount Wildchar
> worker.ajp13.map.2.source=JkMount
> worker.ajp13.map.2.reply_timeout=-1
> worker.ajp13.map.2.sticky_ignore=0
> worker.ajp13.map.2.stateless=0
> worker.ajp13.map.2.fail_on_status=
> worker.ajp13.map.2.active=
> worker.ajp13.map.2.disabled=
> worker.ajp13.map.2.stopped=
> worker.ajp13.map.2.use_server_errors=0
> worker.ajp13.map.3.server=x.x.x [*:443]
> worker.ajp13.map.3.uri=/olat/raw/css/*
> worker.ajp13.map.3.type=Unmount Wildchar
> worker.ajp13.map.3.source=JkMount
> worker.ajp13.map.3.reply_timeout=-1
> worker.ajp13.map.3.sticky_ignore=0
> worker.ajp13.map.3.stateless=0
> worker.ajp13.map.3.fail_on_status=
> worker.ajp13.map.3.active=
> worker.ajp13.map.3.disabled=
> worker.ajp13.map.3.stopped=
> worker.ajp13.map.3.use_server_errors=0
> worker.ajp13.map.4.server=x.x.x [*:443]
> worker.ajp13.map.4.uri=/olat/raw/js/*
> worker.ajp13.map.4.type=Unmount Wildchar
> worker.ajp13.map.4.source=JkMount
> worker.ajp13.map.4.reply_timeout=-1
> worker.ajp13.map.4.sticky_ignore=0
> worker.ajp13.map.4.stateless=0
> worker.ajp13.map.4.fail_on_status=
> worker.ajp13.map.4.active=
> worker.ajp13.map.4.disabled=
> worker.ajp13.map.4.stopped=
> worker.ajp13.map.4.use_server_errors=0
> worker.ajp13.map.5.server=x.x.x [*:443]
> worker.ajp13.map.5.uri=/olat/raw/extensions*
> worker.ajp13.map.5.type=Unmount Wildchar
> worker.ajp13.map.5.source=JkMount
> worker.ajp13.map.5.reply_timeout=-1
> worker.ajp13.map.5.sticky_ignore=0
> worker.ajp13.map.5.stateless=0
> worker.ajp13.map.5.fail_on_status=
> worker.ajp13.map.5.active=
> worker.ajp13.map.5.disabled=
> worker.ajp13.map.5.stopped=
> worker.ajp13.map.5.use_server_errors=0
> worker.ajp13.map.6.server=x.x.x [*:443]
> worker.ajp13.map.6.uri=/olat/raw/images*
> worker.ajp13.map.6.type=Unmount Wildchar
> worker.ajp13.map.6.source=JkMount
> worker.ajp13.map.6.reply_timeout=-1
> worker.ajp13.map.6.sticky_ignore=0
> worker.ajp13.map.6.stateless=0
> worker.ajp13.map.6.fail_on_status=
> worker.ajp13.map.6.active=
> worker.ajp13.map.6.disabled=
> worker.ajp13.map.6.stopped=
> worker.ajp13.map.6.use_server_errors=0
> worker.ajp13.map.7.server=x.x.x [*:443]
> worker.ajp13.map.7.uri=/olat/raw/js*
> worker.ajp13.map.7.type=Unmount Wildchar
> worker.ajp13.map.7.source=JkMount
> worker.ajp13.map.7.reply_timeout=-1
> worker.ajp13.map.7.sticky_ignore=0
> worker.ajp13.map.7.stateless=0
> worker.ajp13.map.7.fail_on_status=
> worker.ajp13.map.7.active=
> worker.ajp13.map.7.disabled=
> worker.ajp13.map.7.stopped=
> worker.ajp13.map.7.use_server_errors=0
> worker.ajp13.map.8.server=x.x.x [*:443]
> worker.ajp13.map.8.uri=/olat/*
> worker.ajp13.map.8.type=Wildchar
> worker.ajp13.map.8.source=JkMount
> worker.ajp13.map.8.reply_timeout=-1
> worker.ajp13.map.8.sticky_ignore=0
> worker.ajp13.map.8.stateless=0
> worker.ajp13.map.8.fail_on_status=
> worker.ajp13.map.8.active=
> worker.ajp13.map.8.disabled=
> worker.ajp13.map.8.stopped=
> worker.ajp13.map.8.use_server_errors=0
> worker.ajp13.map.9.server=x.x.x [*:443]
> worker.ajp13.map.9.uri=/olat
> worker.ajp13.map.9.type=Exact
> worker.ajp13.map.9.source=JkMount
> worker.ajp13.map.9.reply_timeout=-1
> worker.ajp13.map.9.sticky_ignore=0
> worker.ajp13.map.9.stateless=0
> worker.ajp13.map.9.fail_on_status=
> worker.ajp13.map.9.active=
> worker.ajp13.map.9.disabled=
> worker.ajp13.map.9.stopped=
> worker.ajp13.map.9.use_server_errors=0
> worker.result.type=OK
> worker.result.message=Action finished
> 8<-------------------

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