You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sa...@northwestern.edu on 2004/01/12 17:26:39 UTC

[users@httpd] jk2 can't find child

Dear all,

My tomcat server hangs every sunday morning at 4am.

Ive managed to find out the following:

Every sunday morning at 4am, cron restarts syslogd, which in turn
'rotates' my apache httpd logs, which in turn forces my apache httpd to
check out it's scoreboard, and memory etc. and to reset/restart any
processes etc. etc.

I dont know exactly what apache httpd does, because all i see is this:

[Sun Jan 11 04:02:04 2004] [notice] uriEnv.setAttribute() the worker
directive is deprecated. Use 'group' instead.
[Sun Jan 11 04:02:04 2004] [notice] uriEnv.setAttribute() the worker
directive is deprecated. Use 'group' instead.
[Sun Jan 11 04:02:04 2004] [notice] uriEnv.setAttribute() the worker
directive is deprecated. Use 'group' instead.
[Sun Jan 11 04:02:04 2004] [notice] Digest: generating secret for digest
authentication ...
[Sun Jan 11 04:02:04 2004] [notice] Digest: done
[Sun Jan 11 04:02:04 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Jan 11 04:02:04 2004] [notice] LDAP: SSL support unavailable
[Sun Jan 11 04:02:05 2004] [notice] jk2_init() Found child 19088 in
scoreboard slot 4
[Sun Jan 11 04:02:05 2004] [notice] workerEnv.init() ok
/etc/httpd/conf/workers2.properties
[Sun Jan 11 04:02:05 2004] [error] jk2_init() Can't find child 19089 in
scoreboard
[Sun Jan 11 04:02:05 2004] [error] jk2_init() Can't find child 19090 in
scoreboard
[Sun Jan 11 04:02:05 2004] [notice] workerEnv.init() ok
/etc/httpd/conf/workers2.properties
[Sun Jan 11 04:02:05 2004] [error] mod_jk child init 1 -2
[Sun Jan 11 04:02:05 2004] [error] jk2_init() Can't find child 19091 in
scoreboard
[Sun Jan 11 04:02:05 2004] [notice] workerEnv.init() ok
/etc/httpd/conf/workers2.properties
[Sun Jan 11 04:02:05 2004] [error] mod_jk child init 1 -2
[Sun Jan 11 04:02:05 2004] [notice] Apache/2.0.47 (Red Hat Linux)
configured -- resuming normal operations
[Sun Jan 11 04:02:05 2004] [notice] workerEnv.init() ok
/etc/httpd/conf/workers2.properties
[Sun Jan 11 04:02:05 2004] [error] mod_jk child init 1 -2
[Sun Jan 11 04:02:05 2004] [notice] jk2_init() Found child 19084 in
scoreboard slot 0
[Sun Jan 11 04:02:05 2004] [notice] workerEnv.init() ok
/etc/httpd/conf/workers2.properties
[Sun Jan 11 04:02:05 2004] [error] mod_jk child init 1 0

i think the 'child init 1 -2' shuts down, or restarts that particular process.

Anyway, this 'resetting' spills over into the tomcat webserver, which
announces, at the same time, a few INFOs:

Jan 11, 2004 4:02:04 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 11, 2004 4:02:04 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 11, 2004 4:02:04 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection

This is all i've got to go on. looking at the time stamps, the problem
seems to be caused before the childs get missed, ie perhaps when the
parent httpd is restarted?

I've got below, my two config files for jk2, and i'm led to believe that
a simple re-configuration could prevent this hanging of tomcat. Im not
sure at all what?

Cheers
Sam

workers2.properties:
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[shm:]
file=/etc/httpd/logs/jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
host=127.0.0.1
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker=status:status

[uri:/examples/*]
worker=ajp13:localhost:8009

[uri:/monster/*]
worker=ajp13:localhost:8009

jk2.properties:
handler.list=channelSocket,request
channelSocket.port=8009



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org