tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Tomcat Clustring Problem- Session issue?
Date Fri, 02 Feb 2007 14:19:57 GMT

I have successfully installed Apache 2.2.3 in front of a couple of
Tomcat server using the mod_jk (1.2.20). I have configured the system to
perform round-robin load balancing based on sticky session principle.
The problem I have is that the Apache is trying to cross the same
session between the two tomcat servers and then through some errors.
With sticky session I was expecting that each session will be server by
one tomcat server and the session will not be duplicated across the
cluster and the load distributed on round-robin bases. I have looked at
the Tomcat Apache documents and it appears that the "jvmRoute" has been
depreciated and replaced by "route" since the release of mod_jk 1.2.20,
so I have replaced the jvmRoute with route on the server.xml
configuration files to reflect this change but the problem still there. 

It is important to note that the Apache is working fine if one of the
tomcat server shutdown (not load balancing) which suggest that there is
no problem with mounting the files (Jkmount).

I should be grateful if you could help or provide some hints.

Here is my server.xml files
For Tomcat 1 

I tried it with this line first

<Engine name="Standalone" defaultHost="localhost" jvmRoute="worker1"/>

Then replaced with:

<Engine name="Standalone" defaultHost="localhost" route="worker1"/>

For tomcat 2  

<Engine name="Standalone" defaultHost="localhost" jvmRoute="worker2/">
<Engine name="Standalone" defaultHost="localhost" route="worker2/">

Here is my file

# The advanced router LB worker
#The workers that are member of load balancer do not need to appear in
the worker.list directive according to Apache Tomcat Doucementions.

worker.list=router (
# Define a worker using ajp13
# Define preferred failover node for worker1

# Define another worker using ajp13
# Disable worker2 for all requests except failover# ##

# Define the LB worker

Here is my httpd.conf

LoadModule jk_module modules/
JkWorkersFile /usr/apche2/conf/
JkLogFile /usr/apche2/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -Forward JkRequestLogFormat
"%w %V %T"<!-- JkMount /gvp/*.* router

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message