Thanks Eric. I'm still puzzled though. I don't really see any difference in what you're doing vs. what I'm doing. I explicitly specify host and port for the channel sockets and I explicitly define the workers but that's shouldn't make any difference should it? Is there anything in particular in my workers2.properties which is actually not correct?
Please recall that my cluster works for a time and then communication falters between the servers. This doesn't seem like a config problem as a config problem would probably preclude things working correctly in the first place. Is the general opinion that mod_jk2 is ready for production use or is it likely still a little rough? I'm having a lot of trouble getting mod_jk to work though as an alternative. I'm using the release of mod_jk(2) from the Tomcat 4.1.24 release which can be found at: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/ Thanks! Jamey -----Original Message----- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 2:34 PM To: Tomcat Users List Subject: Re: PLEASE HELP - Apache mod_jk2 loses communication with Tomcat Your workers2.properties looks a little off. I don't know if this is the root of your problem but it should look more like: [shm] file=${serverRoot}/logs/shm.file size=1048576 [lb:lb_01] info=Default load balancer. debug=0 # Example socket channel, override port and host. [channel.socket:localhost:8109] info=Ajp13 forwarding over a TCP socket tomcatId=worker1:8109 lb_factor=100 group=lb_01 # define the worker [channel.socket:localhost:8209] info=A second tomcat instance on a different port. tomcatId=worker2:8209 lb_factor=100 group=lb_01 # Uri mapping [uri:/*] group=lb_01 debug=0 You have to adjust it to your own needs. You can change 'localhost' to another IP or servername. -e On Tue, 1 Jul 2003, James Courtney wrote: > I'm trying again as no one responded to my first email. We REALLY need to resolve > this issue. Thanks! > > > We recently upgraded our production systems to Tomcat 4.1.24 and Apache 2.0.45 from > 3.2.2 and 1.3.19 respectively and have noticed a VERY pleasing increase in > performance and over an 80% reduction in system load. We also decided to deploy > with mod_jk2 and the whole system behaved itself quite well during QA and some load > testing (admittedly not overly thorough). We pushed to production and things ran > fine for a couple of days but now, every day or two, our Apache partially loses > communication with one of the two Tomcats it's load balancing accross (not always > the same one). The result is that requests block on Apache and the load goes up as > users click away trying to get their page(s) to load. Restarting the Tomcat seems > to rectify the problem until the next time... > > Any thoughts on this problem and the overall maturity of mod_jk2 vs. mod_jk would be > very helpful. Many thanks to all! > > > Jamey > > > James Courtney > InPhonic, Inc. > Hayward, CA > > > ******************* > ** Apache Errors ** > ******************* > inunison.com:8081 145 Connection timed out [Wed Jun 25 15:08:10 2003] [error] > ajp13.connect() failed ajp13:portal4.somedomain.com:8081 [Wed Jun 25 15:08:10 2003] > [error] ajp13.service() failed to connect endpoint errno=145 Connection timed out > [Wed Jun 25 15:08:10 2003] [error] ajp13.service() Error forwarding > ajp13:portal4.somedomain.com:8081 1 1 [Wed Jun 25 15:08:10 2003] [error] > lb.service() worker failed 120000 for ajp13:portal4.somedomain.com:8081 [Wed Jun 25 > 15:08:13 2003] [error] channelSocket.open() connect failed > portal4.somedomain.com:8081 145 Connection timed out [Wed Jun 25 15:08:13 2003] > [error] ajp13.connect() failed ajp13:portal4.somedomain.com:8081 [Wed Jun 25 > 15:08:13 2003] [error] ajp13.service() failed to connect endpoint errno=145 > Connection timed out [Wed Jun 25 15:08:13 2003] [error] ajp13.service() Error > forwarding ajp13:portal4.somedomain.com:8081 1 1 [Wed Jun 25 15:08:13 2003] [error] > lb.service() worker failed 120000 for ajp13:portal4.somedomain.com:8081 [Wed Jun 25 > 15:08:22 2003] [error] channelSocket.open() connect failed > portal4.somedomain.com:8081 145 Connection timed out [Wed Jun 25 15:08:22 2003] > [error] ajp13.connect() failed ajp13:portal4.somedomain.com:8081 [Wed Jun 25 > 15:08:22 2003] [error] ajp13.service() failed to connect endpoint errno=145 > Connection timed out [Wed Jun 25 15:08:22 2003] [error] ajp13.service() Error > forwarding ajp13:portal4.somedomain.com:8081 1 1 [Wed Jun 25 15:08:22 2003] [error] > lb.service() worker failed 120000 for ajp13:portal4.somedomain.com:8081 > > **************************** > ** WORKERS2 CONFIGURATION ** > **************************** > # only at beginning. In production uncomment it out > [logger.apache2] > level=ERROR > > [shm] > file=/tmp/workers2shmDONOTDELETE.file > size=1048576 > > # portal3 socket > [channel.socket:portal3.somedomain.com:8081] > host=portal3.somedomain.com > port=8081 > tomcatId=portal3 > group=lb:balanced > graceful=1 > > # portal3 worker > [ajp13:portal3.somedomain.com:8081] > channel=channel.socket:portal3.somedomain.com:8081 > lb_factor=12 > > # portal4 socket > [channel.socket:portal4.somedomain.com:8081] > host=portal4.somedomain.com > port=8081 > tomcatId=portal4 > group=lb:balanced > > # portal4 worker > [ajp13:portal4.somedomain.com:8081] > channel=channel.socket:portal4.somedomain.com:8081 > lb_factor=12 > > > # Load balanced worker > [lb:balanced] > worker=ajp13:portal3.somedomain.com:8081 > worker=ajp13:portal4.somedomain.com:8081 > # sticky is on by default but setting it adds a harmless error to the log > #stickySession=1 > > > # Define a status worker > [status:status] > > > # URI mapping > [uri:/*] > group=lb:balanced > > > # Status URI mapping (should not be publicly accessible!!!) > [uri:/jkstatus] > group=status:status > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]