---------------------------------------------------------------- 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!!! ---------------------------------------------------------------- We're trying to get load balancing set up between Apache and Tomcat, using mod_jserv. The connection itself seems to work fantastically, and the whole site runs fine, except for one thing: it crunches after a few page loads. When we sniffed the cookie being returned to the user's browser, we found that the ApJServRoute string is not being appended to the JSESSIONID cookie. mod_jserv's load balancing mechanism is supposed to work by appending a few characters (say "JS1" or "JS2") as defined with the ApJServRoute directive to the end of the session id cookie (at least, that's what we understand from Jean-Luc's paper). This allows the next request which comes into an Apache server to be sent to the correct servlet machine, which, among other things, has the user's current session information. Since the "JS1" (or "JS2") isn't being appended, it's no surprise that you eventually hit a different servlet (Tomcat) machine which doesn't know about your session, and down you go. We're at a bit of a loss trying to determine why this isn't happening. Has anyone encountered this? I realize that Jserv is a servlet engine itself, but the mod_jserv funtionality seems to have been merged between the two projects, and there have been brief reports in faq-o-matic and the Tomcat mailing list archive that there has been success with this. [We have four web servers running Apache 1.3.11 in front, and two machines running Tomcat 3.1 in the back; all upon Sun machines running Solaris 2.7. The httpd.conf mods are right out of the Java-Apache project's Load Balancing HOWTO, (and yeah, it's the same httpd.conf on each web server)] I've hunted through the source code, and I can't immediately see anything wrong, so we suspect we're configuring something incorrectly. The Apache directives of our configuration are appended. Thanks for any insight you might be able to provide, Andrew -- Andrew Frederick Cowie Director of Operations Upoc, Inc cell: 917-217-4578 office: 212-405-1044 [EMAIL PROTECTED] ------ extracted from httpd.conf ------ <IfModule mod_jserv.c> ApJServManual on # everything goes to the balanced set ApJServMount default balance://set1/root # establishes hosts in the set to balance over ApJServBalance set1 SERV1 ApJServBalance set1 SERV2 # maps hosts to actual server DNS names ApJServHost SERV1 ajpv12://servlet1.upoc.com:8007 ApJServHost SERV2 ajpv12://servlet2.upoc.com:8007 # establishes cookie-based routing to restrict each session to a single host ApJServRoute JS1 SERV1 ApJServRoute JS2 SERV2 # "shared memory" file for apache processes running on this server ApJServShmFile log/jserv_shm ApJServSecretKey DISABLED # note that the following directives are not from the above-mentioned example ApJServLogLevel notice AddType test/jsp .jsp AddHandler jserv-servlet .jsp </IfModule> -- -------------------------------------------------------------- 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]