X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 454E09FB273 for ; Sat, 9 Sep 2006 19:36:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05966-07 for ; Sat, 9 Sep 2006 19:36:32 -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 E41FF9FB1FF for ; Sat, 9 Sep 2006 19:36:19 -0300 (ADT) Received: (qmail 25481 invoked from network); 9 Sep 2006 22:36:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 9 Sep 2006 22:36:19 -0000 In-Reply-To: <4503046F.7030901@Berghold.Net> References: <4503046F.7030901@Berghold.Net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: General Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Idle in transaction state. Date: Sat, 9 Sep 2006 18:36:18 -0400 To: Peter@berghold.net X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/360 X-Sequence-Number: 100614 Peter, On 9-Sep-06, at 2:14 PM, Peter L. Berghold wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi folks, > > I've run into an issue that I'm sure there's a fix for, I just haven't > quite figured it out on my own. > > First the overview of the environment: > Linux (CentOS release 4.2) > Tomcat 5.x application server > Struts/Tiles MVC > Hibernate 3.1 Object Persistence > postgresql-8.2dev-500.jdbc2.jar for JDBC drivers > > What I'm seeing is the first time my web application is being run > there > is a bunch of processes running around that look like: > "postgres: peter peter_trialdb 127.0.0.1(46222) idle" I presume you mean "idle in transaction" > > in the process table. What's worse, is if I try to modify my database > schema while these processes are running (and they seem to stick > around > forever) the psql session running the SQL script to do the > modifications > hangs on the first statement that modifies or drops an existing table. > > I'm not even sure what part of this puzzle is the root cause of the > problem. JDBC drivers? Hibernate configuration? Elvis? It's the pooling implementation, it should be setting autocommit to true when closing the connection, which really means returning the connection to the pool. > > Any insight is welcome and appreciated. > Dave > > - -- > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > :: > Peter L. Berghold > Peter@Berghold.Net > "Those who fail to learn from history are condemned to repeat it." > AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: > 11455958 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org > > iD8DBQFFAwRuUM9/01RIhaARAvouAJ9S5BT0aDd4MR2Ps0XXUOCVCU5/vACgtU2E > +drcu3MQ1wVPWq7FnanBOa0= > =xqRU > -----END PGP SIGNATURE----- > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings