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: David Hustace <david@opennms.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: thread hang on execute call
Date: Tue, 18 Apr 2006 08:52:20 +0530
Message-ID: <1145330540.11961.10.camel@pavan.psmw> (raw)
In-Reply-To: <509620E2-FA77-4A73-AC9F-9FB8C4B5B218@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>
	<C658ED62-5895-4846-8E78-5A5F3760803D@opennms.org>
	<509620E2-FA77-4A73-AC9F-9FB8C4B5B218@fastcrypt.com>

hi
 i had 15 worker threads running and performing xml parsing and then
database operation on hug data(most operation are update). I am not sure
but what i think is that my threads stuck one by one due to
unavailability of memory or some other resources. but i was not able to
get exact problem.

 Then i tried with single thread and it worked well for me.
now i have been testing it with 5 threads and i haven't seen any problem
so far.

Thanks
Pavan Kumar
On Mon, 2006-04-17 at 12:40 -0400, Dave Cramer wrote:
> David,
> 
> Is there any way to simulate this. I'd like to get to the bottom of  
> it. I re-read your posts, and it appears you are using an old version  
> of the driver.
> 
> Dave
> On 17-Apr-06, at 11:48 AM, David Hustace wrote:
> 
> > Pavan,
> >
> >> 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.
> >
> > Did you ever resolve this issue?  I had a similar thread running on  
> > this recently:
> >
> > http://archives.postgresql.org/pgsql-jdbc/2006-01/msg00124.php
> >
> > and I haven't any closer on your thread, either.
> >
> >
> > -David
> >
> >
> > David Hustace
> > The OpenNMS Group, Inc.
> > Main  : +1 919 545 2553   Fax:   +1 503-961-7746
> > Direct: +1 919 827 1201   Skype: dhustace
> > Key Fingerprint: 8EC1 F319 2C1D 3197 AAB9  580F FACD 1D19 175E D903
> >
> >
> >
> > ---------------------------(end of  
> > broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> >               http://archives.postgresql.org
> >
> 


------------------------------------------------------------------------
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)

Message-ID: <1145330540.11961.10.camel@pavan.psmw>
Permalink:  ../1145330540.11961.10.camel@pavan.psmw/
Also on:    postgresql.org/message-id/1145330540.11961.10.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, david@opennms.org
  Subject: Re: thread hang on execute call
  In-Reply-To: <1145330540.11961.10.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> <C658ED62-5895-4846-8E78-5A5F3760803D@opennms.org> <509620E2-FA77-4A73-AC9F-9FB8C4B5B218@fastcrypt.com> <1145330540.11961.10.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