Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 45062 invoked from network); 20 Feb 2007 21:28:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2007 21:28:40 -0000 Received: (qmail 91675 invoked by uid 500); 20 Feb 2007 21:28:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90706 invoked by uid 500); 20 Feb 2007 21:28:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 90695 invoked by uid 99); 20 Feb 2007 21:28:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Feb 2007 13:28:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Feb 2007 13:28:24 -0800 Received: from [192.168.2.123] ([192.168.2.123]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id l1KLS2V7003241 for ; Tue, 20 Feb 2007 22:28:02 +0100 (CET) Message-ID: <45DB67DA.4050905@kippdata.de> Date: Tue, 20 Feb 2007 22:27:54 +0100 From: Rainer Jung User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: mod_jk configuration for production References: <9062426.post@talk.nabble.com> In-Reply-To: <9062426.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What's your idea why you configured a socket timeout of 2? nuka schrieb: > Hello, > > I am facing to a problem concerning apache-tomcat configuration via mod_jk > for our production environment. We are using Apache: 2.0.55, Tomcat 5.0, > mod_jk 1.2.15. > > Our first problem has been raised some weeks ago when the clients received > http 404 errors. > > mod_jk logs have shown errors such as: > > [Tue Feb 13 08:36:03 2007][info] ajp_send_request::jk_ajp_common.c (1178): > Socket 14 is not connected any more (errno=-1) > [Tue Feb 13 08:36:03 2007][info] ajp_send_request::jk_ajp_common.c (1202): > Error sending request. Will try another pooled connection > [Tue Feb 13 08:36:03 2007][info] ajp_send_request::jk_ajp_common.c (1225): > All endpoints are disconnected or dead > [Tue Feb 13 08:36:03 2007][info] ajp_service::jk_ajp_common.c (1749): > Sending request to tomcat failed, recoverable operation attempt=1 > > After that, we changed the timeout for tomcat ajp connector (initially = > 10000) to 60000ms. > > Now we get other errors: > > - a lot of "Error decoding request" in the JBoss logs at the same times > where mod_jk is showing > > [Mon Feb 19 13:25:50 2007][info] > ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced a > connection close for socket 14 > [Mon Feb 19 13:25:50 2007][error] ajp_get_reply::jk_ajp_common.c (1503): > Tomcat is down or refused connection. No response has been sent to the > client (yet) > [Mon Feb 19 13:25:50 2007][info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recoverable operation attempt=0 > > Bellow is our configuration: > > > enableLookups="false" redirectPort="8443" debug="0" > protocol="AJP/1.3" connectionTimeout="60000"/> > > workers.properties: > > # Define list of workers that will be used > # for mapping requests > worker.list=loadbalancer, loadbalancer2, status > > > worker.xxxNode1.port=8109 > worker.xxxNode1.host=xxxx > worker.xxxNode1.type=ajp13 > worker.xxxNode1.socket_keepalive=True > worker.xxxNode1.socket_timeout=2 > worker.xxxNode1.recycle_timeout=300 > worker.xxxNode1.recovery_options=0 > > worker.xxxNode2.port=8209 > worker.xxxNode2.host=xxx.xx.xx.xx > worker.xxxNode2.type=ajp13 > worker.xxxNode2.socket_keepalive=True > worker.xxxNode2.socket_timeout=2 > worker.xxxNode2.recycle_timeout=300 > worker.xxx2.recovery_options=0 > > Do you have any idea which parameters do we need to change in this > configuration? > > thanks > > rgds > > Nuka > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org