----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi -
I have a curious problem with load balancing and
JServ. The advertised behaviour of mod_jserv is that
it will look for a session cookie on servlet requests
and direct requests always to the same JServ server
from which the first request originated. In order not
to rely upon defaults, you will see that my jserv.conf
specifies the use of cookies to this end.
However, I find that client requests are sprayed
across both my JServ servers even in situations where
this should not happen. Indeed, further investigation
(by setting my browser to prompt me before accepting
ANY cookies) shows that no cookies are being sent in
the first place!
Am I missing something!? Perhaps someone has
experienced this problem, or perhaps I am being very
silly. Any help would be most appreciated.
My system configuration is as follows:
HTTP:
Sun Solaris 8 + Apache 1.3.12
JServ:
Linux (Kernel 2.2.16) + Apache JServ 1.1.2
JSDK 2.0
IBM JDK 1.3 for Linux
My jserv.properties:
###################################
# Apache JServ Configuration File #
###################################
# Execution parameters
#######################
wrapper.bin=/usr/local/java/bin/java
wrapper.class=org.apache.jserv.JServ
wrapper.classpath=/usr/local/jserv/ApacheJServ.jar
wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar
wrapper.protocol=ajpv12
# General parameters
######################
bindaddress=10.194.229.181
port=9002
# Servlet Zones parameters
###########################
zones=servlets
servlets.properties=/home/storm/jserv/conf/servlets.properties
# Security parameters
#####################
security.maxConnections=50
security.allowedAddresses=127.0.0.1,130.21.160.32,130.21.218.118
security.authentication=false
#security.secretKey=
security.challengeSize=5
# Logging parameters
####################
log.file=jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.channel.servletLog=true
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=true
log.channel.requestData=true
log.channel.responseHeaders=true
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true
*************************************************
My servlets.properties:
###############################################################################
# Servlet Zone Configuration
File #
###############################################################################
# List of Repositories
#######################
repositories=/home/storm/storm/servlets
# Classloader parameters
#########################
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
# Session Cookie parameters
###########################
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
#session.topleveldomain=.foo.com
# SingleThreadModel Servlets parameters
########################################
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
**************************
Regards,
matthew Pontefract
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]