Mladen Turk wrote:
Assure you have only one child process.
The inprocess won't work for prefork, and perchild mpm's.
It can work with worker mpm if you config Apache to use the single child
process.

The problem is that the TC is started for every child and only one can
succeed to start (first).
So that gives you those weird responses.

Thanks for the insight, Mladen.


I have recompiled apache with the worker mpm and in my httpd.conf I have:
<IfModule worker.c>
StartServers         1
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

'Just in case' I have also rebuilt mod_jk2. I then start apache and get this in my error log:

[Wed Apr 02 17:48:39 2003] [error] jk2_init() Can't find child 7050 in scoreboard
[Wed Apr 02 17:48:39 2003] [notice] Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6g mod_jk2/2.0.3-dev configured -- resuming normal operations
[Wed Apr 02 17:48:40 2003] [error] jk2_init() Can't find child 7051 in scoreboard
[Wed Apr 02 17:48:41 2003] [error] jk2_init() Can't find child 7052 in scoreboard
[Wed Apr 02 17:48:41 2003] [error] jk2_init() Can't find child 7053 in scoreboard
[Wed Apr 02 17:48:42 2003] [error] jk2_init() Can't find child 7054 in scoreboard
[Wed Apr 02 17:48:42 2003] [error] jk2_init() Can't find child 7055 in scoreboard
[Wed Apr 02 17:48:42 2003] [error] jk2_init() Can't find child 7056 in scoreboard
[Wed Apr 02 17:48:42 2003] [error] jk2_init() Can't find child 7057 in scoreboard


Every second 3-5 of these messages spam the log, continuously. Tomcat is never loaded.

Question: Should the ScoreBoardFile directive in httpd.conf be the same scoreboard file as the shm section in jk2.properties and workers2.properties? As far as I know apache doesn't use ScoreBoardFile for a single process setup, and either should mod_jk2. I tried mod_jk2 with the shm disabled in the two relevant files but it just complained. Also I tried using the same file as ScoreBoardFile pointed to. None of these compinations work.

Can anyone shed some light on why I am getting totally spammed with these messages now? In testing I tried setting all of: MaxClients MinSpareThreads MaxSpareThreads ThreadsPerChild to 1, then I only got about 1 "can't find child" message per second.

Thanks again,
Rob


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to