X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7220A329CB7 for ; Wed, 8 Sep 2004 17:03:48 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35182-01 for ; Wed, 8 Sep 2004 16:03:22 +0000 (GMT) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by svr1.postgresql.org (Postfix) with ESMTP id D74A8329CDB for ; Wed, 8 Sep 2004 17:03:18 +0100 (BST) Received: from DUBLIN ([142.179.142.31]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with SMTP id <20040908160315.LNEA2138.priv-edtnes51.telusplanet.net@DUBLIN>; Wed, 8 Sep 2004 10:03:15 -0600 Message-ID: <002301c495bd$5abc6470$0b01a8c0@mymailout.com> From: "Mike Bridge" To: Cc: References: <20040902170953.A19017@bridgecanada.com> <1094167635.1543.28.camel@localhost.localdomain> Subject: Re: Connections dropped randomly Date: Wed, 8 Sep 2004 10:03:17 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/21 X-Sequence-Number: 10911 I think I may have finally figured out the source of this problem. I'm getting a connection from a JDO connection manager (but not using JDO here), and it reaps these connections with no activity after 10 seconds by default. Under load, some of the updates can take this long, so I've upped the timeout, and this seems to have taken care of the problem so far. Thanks, -Mike ----- Original Message ----- From: "Dave Cramer" To: "Mike Bridge" Cc: Sent: Thursday, September 02, 2004 5:27 PM Subject: Re: [JDBC] Connections dropped randomly > Without seeing your code, or your setup, it's hard to say. > > But given that exactly the same thing is done by lots of other people > without the problem, I'd be hard pressed to say it's a bug in the > driver, or postgresql. > > Dave > On Thu, 2004-09-02 at 19:09, Mike Bridge wrote: > > I find that if I reuse a jdbc connection to perform a number of > > update queries (e.g. 1000), the connection keeps getting dropped > > after a random number of iterations. > > > > This occurs in all sorts of queries throughout my application. Any > > idea what might be causing this? I'm not doing anything > > out-of-the-ordinary, and it happens on both prepared statements > > and regular statements. > > > > I had this problem in postgres 7.3, and it's still there after > > upgrading to 7.4.4 & pg74.215.jdbc2.jar. > > > > Thanks, > > > > -Mike > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 8: explain analyze is your friend > -- > Dave Cramer > 519 939 0336 > ICQ # 14675561 > www.postgresintl.com > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >