pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavan Kumar <pavan@netcore.co.in>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: João Paulo Ribeiro <jp@mobicomp.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: thread hang on execute call
Date: Fri, 07 Apr 2006 17:39:45 +0530
Message-ID: <1144411785.17761.41.camel@pavan.psmw> (raw)
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>

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.
> >
> > ---------------------------------------------------------------------- 
> > --
> >
> > <sp_addupdateitem.sql>
> 
> 
> ---------------------------(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.

------------------------------------------------------------------------




view thread (19+ messages)  latest in thread

Message-ID: <1144411785.17761.41.camel@pavan.psmw>
Permalink:  ../1144411785.17761.41.camel@pavan.psmw/
Also on:    postgresql.org/message-id/1144411785.17761.41.camel@pavan.psmw

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pavan@netcore.co.in, pg@fastcrypt.com, oliver@opencloud.com, jp@mobicomp.com
  Subject: Re: thread hang on execute call
  In-Reply-To: <1144411785.17761.41.camel@pavan.psmw>
  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> <1144411785.17761.41.camel@pavan.psmw>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox