X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D4CA811F6CB8 for ; Fri, 7 Apr 2006 09:11:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09282-01 for ; Fri, 7 Apr 2006 09:11:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lvs2.netcore.co.in (lvs2.netcore.co.in [202.162.240.2]) by postgresql.org (Postfix) with ESMTP id 057B911F6CB5 for ; Fri, 7 Apr 2006 09:11:21 -0300 (ADT) Received: from uucp3.netcore.co.in (uucp3.netcore.co.in [202.162.229.13]) by lvs2.netcore.co.in (Postfix) with ESMTP id 34245351782; Fri, 7 Apr 2006 17:41:20 +0530 (IST) Received: from uucp1.netcore.co.in (unknown [192.168.2.1]) by uucp3.netcore.co.in (Postfix) with ESMTP id 75D9E3B893; Fri, 7 Apr 2006 17:41:19 +0530 (IST) Received: by uucp1.netcore.co.in (Postfix, from userid 10) id F33D3165E; Fri, 7 Apr 2006 17:41:20 +0530 (IST) Received: from pavan.psmw (unknown [192.168.70.1]) by ho.netcore.co.in (Postfix) with ESMTP id D8382834019; Fri, 7 Apr 2006 17:57:57 +0530 (IST) Subject: Re: thread hang on execute call From: Pavan Kumar To: Dave Cramer Cc: Oliver Jowett , =?ISO-8859-1?Q?Jo=E3o?= Paulo Ribeiro , pgsql-jdbc@postgresql.org In-Reply-To: <335427EC-F708-4607-848C-5EA27A4898E6@fastcrypt.com> References: <1144141469.16392.18.camel@pavan.psmw> <13631ECC-A37D-4A7E-A730-6CE9670724A4@fastcrypt.com> <18448.1144158004@sss.pgh.pa.us> <1144323083.26830.53.camel@pavan.psmw> <44350696.6030506@mobicomp.com> <44353BD2.7060108@opencloud.com> <2E5000CC-3E4B-4EC5-B26C-2A6CB989971E@fastcrypt.com> <4435842C.3000909@opencloud.com> <8E73BF65-87AA-4DCA-8FF2-1170101928DE@fastcrypt.com> <1144386438.17761.30.camel@pavan.psmw> <335427EC-F708-4607-848C-5EA27A4898E6@fastcrypt.com> Content-Type: text/plain Date: Fri, 07 Apr 2006 17:39:45 +0530 Message-Id: <1144411785.17761.41.camel@pavan.psmw> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 Content-Transfer-Encoding: 7bit X-MailServ-MailFilter-MailScanner-Information: Please contact the ISP for more information X-MailServ-MailFilter-MailScanner: Found to be clean X-MailScanner-From: pavan@netcore.co.in X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/70 X-Sequence-Number: 15004 i am using spring framework. so all are wrapped up in spring call it uses apache dbcp for connection pooling On Fri, 2006-04-07 at 07:26 -0400, Dave Cramer wrote: > Pavan, > > I'd really like to see the java code. It's important to see how you > are handling the connections, exceptions etc. > > Dave > On 7-Apr-06, at 1:07 AM, Pavan Kumar wrote: > > > hi > > i sending procedure as attachments that is called by java program. > > please get it from attachments. > > i creates 15 worker threads and there is queue for job. > > worker threads get job from queue if it there and do some db > > operation. > > and wait if there is no job in queue. there is another thread that > > push > > job in queue. > > since whole processing takes time.....so worker threads always find > > job > > in queue. > > so they run nonstop and make db call to this procedure. > > after around 2 days all threads get stuck one bye one. > > then there is no response from either side. > > worker thread also do some memory intensive operation at their side. > > it could be that threads are running low on memory so then might > > not be > > able to respond postgres process. but jvm doesn't show out of memory. > > and both end are waiting on recv call. > > please tell me if you need more info or the way i should try to > > help you > > people to diagnose problem. > > > > Following two line or from logs > > > > LOG: unexpected EOF on client connection > > LOG: could not receive data from client: Connection reset by peer > > > > well i am not sure when this loggin happened. either after when i > > killed > > java process or before it. > > > > thanks a lot for your nice help. > > > > > > On Thu, 2006-04-06 at 18:35 -0400, Dave Cramer wrote: > >> You're correct it's a guess at this point predicated on the > >> assumption that it works for many others without this flaw. > >> On 6-Apr-06, at 5:12 PM, Oliver Jowett wrote: > >> > >>> Dave Cramer wrote: > >>>> This is most certainly a threading issue. The question is now > >>>> whether it is in the driver or outside the driver. > >>> > >>> Huh? What made you conclude it was definitely a threading issue? > >>> > >>> -O > >>> > >>> ---------------------------(end of > >>> broadcast)--------------------------- > >>> TIP 5: don't forget to increase your free space map settings > >>> > >> > > > > ---------------------------------------------------------------------- > > -- > > Netcore Solutions Pvt. Ltd. > > Website: http://www.netcore.co.in > > Spamtraps: http://cleanmail.netcore.co.in/directory.html > > > > Support FAQ : http://support.netcore.co.in/ > > > > This e-mail contains confidential and/or privileged information. If > > you are not the intended recipient (or have received this e-mail in > > error) please notify the sender immediately and delete this e- > > mail. Any > > unauthorized copying, disclosure, use or distribution of the > > material in > > this e-mail is strictly forbidden. > > > > ---------------------------------------------------------------------- > > -- > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings ------------------------------------------------------------------------ Netcore Solutions Pvt. Ltd. Website: http://www.netcore.co.in Spamtraps: http://cleanmail.netcore.co.in/directory.html Support FAQ : http://support.netcore.co.in/ This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure, use or distribution of the material in this e-mail is strictly forbidden. ------------------------------------------------------------------------