You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Courtney <Jc...@inphonic.com> on 2003/06/06 00:25:15 UTC

mod_jk2 and shm

I keep getting errors like the following from my mod_jk2 installation.  Everything seems to work fine but my apache_error log has errors relating to the shm worker which I don't even configure in workers.properties since I don't see that it's in any way required for a simple channel.socket configuration.  My load balancing through Apache seems to work fine too so I'm pretty confused.  I've inlined the errors followed by OS and Apache information followed by my workers2.properties.  I'm using Tomcat 4.1.24.

Should I be configuring Apache to use an on-disk scoreboard file and should I be configuring the shm worker to point to that file?  I've tried this and the "shm.init(): No file" error goes away but that's it.

Thanks ahead of time for the help!

Jamey



**********************
** apache_error.log **
**********************

[Thu Jun 05 13:54:45 2003] [error] shm.init(): No file
[Thu Jun 05 13:54:45 2003] [notice] workerEnv.init() ok /home/jamey/cvs/inunison
/pt30/server/conf/workers2.properties
[Thu Jun 05 13:54:45 2003] [error] mod_jk child init 1 -2
[Thu Jun 05 13:54:46 2003] [error] jk2_init() Can't find child 11023 in scoreboa
rd


*************
** OS Info **
*************
SunOS viagra 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-60 Solaris


*****************
** Apache Info **
*****************
Server version: Apache/2.0.45
Server built:   May  8 2003 09:58:18
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/apps/apache/2.0.45"
 -D SUEXEC_BIN="/apps/apache/2.0.45/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


*************************
** workers2.properties **
*************************
# only at beginning. In production comment it out
[logger.apache2]
level=DEBUG

# First socket channel, override port and host.
[channel.socket:localhost:6670]
host=localhost
port=6670
tomcatId=localhost
group=lb:balanced

# Define the first worker
[ajp13:localhost:6670]
channel=channel.socket:localhost:6670


# Define a status worker
[status:stat]


# URI mapping
[uri:/*]
group=ajp13:localhost:6670


# Status URI mapping (should not be publicly accessible!!!)
[uri:/jk2status]
group=status:stat

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