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 7FABC11F6AB5 for ; Thu, 6 Apr 2006 09:07: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 31522-10 for ; Thu, 6 Apr 2006 09:07:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id BBCAD11F6983 for ; Thu, 6 Apr 2006 09:07:21 -0300 (ADT) Received: (qmail 18940 invoked from network); 6 Apr 2006 12:07:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 6 Apr 2006 12:07:19 -0000 In-Reply-To: <1144323083.26830.53.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> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Tom Lane , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: thread hang on execute call Date: Thu, 6 Apr 2006 08:07:14 -0400 To: Pavan Kumar X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/57 X-Sequence-Number: 14991 Pavan, I'd have to see the rest of the code to be helpful here. It certainly sounds like the driver is getting confused. Candidly though the driver is used by probably 1000's of people without this happening, so I'd be hard pressed to believe it was the driver. I'm certainly open to being proven wrong though. Dave On 6-Apr-06, at 7:31 AM, Pavan Kumar wrote: > hi > again i stuck to same problem. > i restarted my program. After 36 hour all thread got stuck with > postgresql call. > both java thread and postgresql are stuck on recv call....i couldn't > understand whats problem.why did it happen. > threads perform database intensive operation. there more then 60000 > record in table. > could you tell me if i need to do any performance tuning things. like > increasing cache size. > each postgresql process taking 21-23 MB of memory. > > > here is the stack trace of postgresql process. > > 0 0x003437a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 > #1 0x00424451 in recv () from /lib/tls/libc.so.6 > #2 0x08145aae in secure_read () > #3 0x0814c062 in pq_recvbuf () > #4 0x0814c121 in pq_getbyte () > #5 0x081ad5fc in PostgresMain () > #6 0x0818765d in ServerLoop () > #7 0x0818904f in PostmasterMain () > #8 0x0814dd18 in main () > > > > > > following is the stack trace of one of java thread. > > Thread 618: (state = IN_NATIVE) > - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, > byte[], int, int, int) @bci=0 (Co > mpiled frame; information may be imprecise) > - java.net.SocketInputStream.read(byte[], int, int) @bci=84, line=129 > (Compiled frame) > - java.io.BufferedInputStream.fill() @bci=175, line=218 (Compiled > frame) > - java.io.BufferedInputStream.read() @bci=12, line=235 (Compiled > frame) > - org.postgresql.core.PGStream.ReceiveChar() @bci=4, line=254 > (Compiled > frame) > - > org.postgresql.core.v3.QueryExecutorImpl.execute > (org.postgresql.core.Query, org.postgresql.core. > ParameterList, org.postgresql.core.ResultHandler, int, int, int) > @bci=129, line=188 (Interpreted fr > ame) > - > org.postgresql.jdbc2.AbstractJdbc2Statement.execute > (org.postgresql.core.Query, org.postgresql.co > re.ParameterList, int) @bci=199, line=430 (Interpreted frame) > - org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(int) > @bci=14, line=346 (Compiled fr > ame) > - org.postgresql.jdbc2.AbstractJdbc2Statement.execute() @bci=2, > line=339 (Interpreted frame) > - org.apache.commons.dbcp.DelegatingPreparedStatement.execute() > @bci=8, > line=168 (Interpreted fram > e) > > On Tue, 2006-04-04 at 09:40 -0400, Tom Lane wrote: >> Dave Cramer writes: >>> Is it possible the query does not return ? Try adding a large >>> statement timeout to the server. >> >> The stack traces say that the client and server are each waiting for >> input from the other ... so somebody's confused about something. >> >> regards, tom lane >> >> ---------------------------(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. > > ---------------------------------------------------------------------- > -- > >