Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48898 invoked from network); 3 Aug 2009 22:43:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 22:43:23 -0000 Received: (qmail 23564 invoked by uid 500); 3 Aug 2009 22:43:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23485 invoked by uid 500); 3 Aug 2009 22:43:24 -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 23465 invoked by uid 99); 3 Aug 2009 22:43:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 22:43:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.48.210] (HELO web52607.mail.re2.yahoo.com) (206.190.48.210) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Aug 2009 22:43:10 +0000 Received: (qmail 44844 invoked by uid 60001); 3 Aug 2009 22:42:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1249339367; bh=j5qsHmK5aZBBkAiR1bdPSoXPins5bdsfFpHHg8xti50=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=h27i42n3uN+C1DD8PwKrQ9jhnrhYBrarY9D/rET9Tzb6o3kpj4q71MB4LFwvodsh98xQj8im8Y+XZ/3xmXJbv2DUW3p5gJ3o4vrXY2b0vh9OwojLKhWfM86WkooLEvjbZwykvE0ODts64OjGXZPJBu6jiYsHdYxSPF3nxufwlOM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=B07HNFKWo+fqrSp99ZoqdjY0u42k/06+aFI/6kbzCR9rP4cO0lYAuzA3BrbhR3fo/gk4wKGdiVuNxPsVYOJ7URvN8NNlm6oCfshvMSYlOS5gP75NvZmtnrHAzDflF7P2IayjykilSSrDPzeihCPHJr267wllP1b8O5bMPTc/jTc=; Message-ID: <445305.44285.qm@web52607.mail.re2.yahoo.com> X-YMail-OSG: AH8maX4VM1kVC6vPA2zbEgxOcP.OX2d.4wnGwvmuHYO1530I3tlIn9GePzXgUZllMEue58m951kExiRSKPmpqJtWtmF2Y9q1os7d2XQKOBndYHGILeIO.dbGuN1UR0vlVqz3SEErAA716sl99BmFz6HF1LBAdl2OagzHnkx27IyCyWgzXAkgmYYv57W34yiN.v6W1wvxsSc8MBmwaD7jII5iZ8LWIc3EZNrFZgZLWXIMqg72.MH6bbsKD3_7zP2Vdo6yGSkGthpqScsh3..y8Q6UEjHceh3bjolavTCYxQut7PSQzI47srx_gA-- Received: from [59.184.23.134] by web52607.mail.re2.yahoo.com via HTTP; Mon, 03 Aug 2009 15:42:47 PDT X-Mailer: YahooMailClassic/6.0.19 YahooMailWebService/0.7.289.15 Date: Mon, 3 Aug 2009 15:42:47 -0700 (PDT) From: Madhuri Patwardhan Subject: what exactly happens when timeouts are set and tomcat has outofmemory errors. To: Tomcat Users List , aw@ice-sa.com In-Reply-To: <722546.24516.qm@web52602.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi,=0A=0ACan somebody go over the details of what exactly happens when tomc= at instance has outOfmemory errors and there are following timeouts set in = a loadbalancer worker config. =0A=0AThis is my understanding.=0A=0Aping_mod= e=3DA, ping_timeout=3D10000, reply_timeout=3D60000 and recorver_options=3D3= =0A=0AIf the timeouts are set as above then CPing/Cpong test for connect an= d prepost will work. When a new real request is sent to this tomcat instanc= e, it should hit reply_timeout because it has outofmemory errors. Then depe= nding on no. of retries set (it is default, for me so 2), this instance wil= l be tried once again. Second time also it should not get reply within repl= y_timeout and at that point it should be marked in "ERR" state. =0AHowever,= I don't see that. I don't see it being marked in "ERR" state. The state is= still "OK" inspite of this tomcat instance having outofmemory errors. Coul= d somebody explain what am I missing?=0A=0AAlso, what does recorvery option= mean in this case? Is it possible to explain what happens when I set recov= ery options? what happens when I set it to 3? What will happen if I set it = to 7?=0A=0AI am really hoping to get more understanding of how this works.= =0A=0AThanks,=0AMadhuri=0A=0A--- On Mon, 8/3/09, Madhuri Patwardhan wrote:=0A=0A> From: Madhuri Patwardhan =0A> Subject: Re: after setting timeouts got puzzling res= ults=0A> To: "Tomcat Users List" , aw@ice-sa.com= =0A> Date: Monday, August 3, 2009, 6:12 PM=0A> =0A> Hi,=0A> =0A> I am using= apache 2.2.11 and mod_jk 1.2.28 and tomcat=0A> version 5.5.27 and 5.5.20= =0A> =0A> Thanks,=0A> Madhuri=0A> =0A> --- On Mon, 8/3/09, Andr=E9 Warnier = =0A> wrote:=0A> =0A> > From: Andr=E9 Warnier = =0A> > Subject: Re: after setting timeouts got puzzling=0A> results=0A> > T= o: "Tomcat Users List" =0A> > Date: Monday, August= 3, 2009, 1:48 PM=0A> > Madhuri Patwardhan wrote:=0A> > > Hi,=0A> > > =0A> = > > We are running with apache loadbalancer and 19=0A> tomcat=0A> > workers= loadbalanced.=0A> > > I went through the timeout document and other=0A> > = documents, and my apache access log in detail before=0A> > choosing the tim= eout values. I am seeing a bit=0A> surprising=0A> > results after setting t= imeouts.=0A> > > =0A> > > Earlier we did not have connect_timeout,=0A> > pr= epost_timeout, reply_timeout, recovery_options and=0A> > ping_mode set. Aft= er going through the documents and=0A> > analyzing our application logs for= timings I set the=0A> > following values.=0A> > > =0A> > > ping_mode =3D A= =0A> > > reply_timeout=3D60000=0A> > > recorvery_options=3D3=0A> > > socket= _connect_timeout=3D5000=0A> > > =0A> > > Ping_timeout is set to the default= value that is=0A> > 10000.=0A> > > =0A> > > I saw that one of the tomcat i= nstances had out=0A> of=0A> > memory errors and loadbalacer still showed th= at worker=0A> in=0A> > good state for 24 hours. I felt after setting these= =0A> timeouts=0A> > infact it should have detected conditions like this=0A>= quickly.=0A> > What am I missing?=0A> > > =0A> > One thing that is missing= above, and would help=0A> someone to=0A> > answer, are the versions of Apa= che, mod_jk and Tomcat=0A> you=0A> > are using.=0A> > (At least I suppose i= t is mod_jk).=0A> > =0A> >=0A> --------------------------------------------= -------------------------=0A> > To unsubscribe, e-mail: users-unsubscribe@t= omcat.apache.org=0A> > For additional commands, e-mail: users-help@tomcat.a= pache.org=0A> > =0A> > =0A> =0A> =0A> =0A> =0A> ---------------------------= ------------------------------------------=0A> To unsubscribe, e-mail: user= s-unsubscribe@tomcat.apache.org=0A> For additional commands, e-mail: users-= help@tomcat.apache.org=0A> =0A> =0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org