tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz-Otavio Zorzella <zorze...@codaware.com>
Subject Need help with JK2 & sticky sessions...
Date Fri, 25 Apr 2003 00:18:42 GMT
Hi,

I successfully set up an Apache 2.0.43+JK2 2.0.1 load balancing box in
front of my JBoss 3.2.0+Tomcat 4.1.24 cluster of two other boxes.

The problem is that sticky sessions are not working at all. In other
words, each request goes to a different node in my cluster. I need the
requests that come from a client to always be directed to the same
server, until (and if) that server dies.

Can someone tell me what's wrong?

Find here my workers2.properties and log attached in the end.

Zorzella

error_log: I keep getting these message, but I don't know if they are
relevant to this problem
**********

Thu Apr 24 13:33:08 2003] [error] channelSocket.receive(): Error
receiving message body -1 11
[Thu Apr 24 13:33:08 2003] [error] workerEnv.processCallbacks() Error
reading reply
[Thu Apr 24 13:33:08 2003] [error] ajp13.service() ajpGetReply
recoverable error 120000


workers2.properties:
**********************
[logger]
level=DEBUG
debug=10

[config:]
file=/etc/httpd2/conf/workers2.properties
debug=10
debugEnv=0

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

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd2/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/var/run/jk2.shm
size=1000000
debug=10
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=10
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=10






# Map the codatest directory to the Web server uri space
[uri:/test/*]
info=Map the whole webapp

[channel.socket:node1.mydomain.com:8009]
info=A second tomcat instance.
debug=10
tomcatId=node1.mydomain.com:8009
lb_factor=1

[channel.socket:node2.mydomain.com:8009]
info=Ajp13 forwarding over socket
debug=10
tomcatId=node2.mydomain.com:8009
lb_factor=1













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

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=1

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=1
stdout=/var/log/httpd2/stdout.log
stderr=/var/log/httpd2/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=1

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


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


Mime
View raw message