Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

unixSocket JK or JK2?

Daniel Gibby

2004-04-28


Here is output from the start of my catalina.out
I can't figure out why it says JK on the jk2.socket line, and JK2 on the
other lines.
Is that a small output bug, or am I actually using mod_jk AND mod_jk2?

[Wed Apr 28 00:14:33 2004] ( info ) [jk_config_file.c (320)]
cfg.update() Updating config /etc/httpd/conf/workers2.properties 0
1082384991
[Wed Apr 28 00:14:33 2004] ( info ) [jk_config_file.c (331)]
config.setConfig(): Reading properties
/etc/httpd/conf/workers2.properties 33
Apr 28, 2004 12:14:33 AM org.apache.jk.apr.AprImpl init
INFO: JK2: Initialized apr
Apr 28, 2004 12:14:33 AM org.apache.jk.common.ChannelUn init
INFO: JK: listening on unix socket:
/usr/local/jakarta-tomcat/work/jk2.socket
Apr 28, 2004 12:14:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 28, 2004 12:14:33 AM org.apache.jk.common.ChannelJni init
INFO: JK2: listening on channel.jni:jni
Apr 28, 2004 12:14:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=8/278
config=/usr/local/jakarta-tomcat/conf/jk2.properties
Starting service Tomcat-Apache
Apache Tomcat/4.1.30

Maybe unixSockets aren't supported in JK2, so it is using JK instead, or
maybe the output is wrong. Anyone know about that?

jk2.properties:
=================================================
channelUnix.file=/usr/local/jakarta-tomcat/work/jk2.socket
shm.file=/usr/local/jakarta-tomcat/work/jk2.shm
shm.unixSocket=/usr/local/jakarta-tomcat/work/jk2.socket
handler.list=apr,channelUnix,request
channelJni.disabled = 0
apr.NativeSo=/usr/local/jakarta-tomcat/server/lib/jkjni.so
=================================================


workers2.properties:
=================================================
[logger]
level=ERROR

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[status:status]
info=Status worker, displays runtime informations

[status:jk2info]
info=Status worker for jk2

[lb:unixsoc]
info=Default load balancer.
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/usr/local/jakarta-tomcat/work/jk2.shm
size=1048576
debug=0
disabled=0

[channel.un:unixsocket]
file=/usr/local/jakarta-tomcat/work/jk2.socket
tomcatId=localhost:8009
group=unixsoc

[ajp13:unixsocket]
channel=channel.un:unixsocket
group=unixsoc

#...mappings...
[uri:/jkstatus*]
info=Display status information and checks the config file for changes.
group=status:status

[uri:/jkstatus2/*]
info=Display status information and checks the config file for changes.
group=status:jk2info

[uri:/*j_security_check]
info=security check
group=unixsoc

[uri:www.domain.com/*.jsp]
group=unixsoc
[uri:www.domain.com/go/*]
group=unixsoc
=================================================

If you see any other potential problems or optimizations, please let me
know!

Thanks,

Daniel Gibby


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.