Hi all
I have used following links to load balance two instances of tomcats on same server + redirect
JSP requests from Apache 2.0 to Tomcats.
I have configured based on notes provided at
http://raibledesigns.com/tomcat/ (if you cannot get above site, go to
http://www.ubeans.com/tomcat/index.html It is same as above but for Apache 1.3.x)
Above two articles contains step by step instructions for configuring an Apache 2.0 and 1.3.23 web servers respectively which handles static content and delegates JSP (
Java Server Pages) and
Servlet requests to two
Tomcat 4.0.2 Beta2 servers using AJP 13 connectors and a load balancing worker.
java version: J2SDK 1.4.2
Linux version: SuSE 9.0 profession Enterprise Edition
Linux kernel version: 2.4.21-144-smp4G
Tomcat 4.0.6 - Two instances of Tomcat load balanced on same server
Apache 2.0.48
JSP applications using MySQL database, which is running on different server.
With this configuration our werbsite is working fine. We were able to browse both static html and jsp/servlet pages without any problem.
But, in mod_jk.log file we are getting a whole lot of error messages, kind of similar error messages repeating over and over again. Since, JSP pages were served without any problem we have ignored these messages. But in last month our web server crashed twice. Hence, we started digging into this problem.
Ours is a very busy website. It gets serveral million hits per month. But I could replicate the same problem on pre-production server.
Could any one help us clearing these error messages.
Thank you.
Rao Manekar
/**********************
ERROR generated in mod_jk.log
/***********************
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 111
[jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111
[jk_ajp_common.c (955)]: Error connecting to the Tomcat process.
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 111
[jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111
[jk_ajp_common.c (955)]: Error connecting to the Tomcat process.
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=1
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 111
[jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111
[jk_ajp_common.c (955)]: Error connecting to the Tomcat process.
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=2
[jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. Failed errno = 111
*************************/
[ June 14, 2004: Message edited by: NARSIMHA MANEKAR ]
[ June 14, 2004: Message edited by: NARSIMHA MANEKAR ]