Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 773829FB5AA for ; Tue, 6 Mar 2007 12:29:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 42383-10 for ; Tue, 6 Mar 2007 12:28:48 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id DFE889FB2F5 for ; Tue, 6 Mar 2007 12:28:47 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so228356ugf for ; Tue, 06 Mar 2007 08:28:46 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=uHrHWeRVYpsGZ1KlMX62klVMVmGLmzODag5z3N3zHLdKMdOnwpASlYT20v4xYMsC5Tkvn4R/IbAfWqAsDJtPS9EJJ7GOjKwTG3tti0VTgAAUGrZrk7om8bKXi25WE2ho17NzKF8F4f/02XcAt2gABFnLhUvILsdwZ0pqNu/d8eM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=d4jhuA/ExEqfBNddZehH6aa+ZGFt34wUqvdqeysdc6xApjUbXKMfqXQqarehDniX2xeai0LuN92rrArptu4wjH17JgrFIXjlDWHZL6POjkNfgIjxkAOzT7l5ZcBUBhl9/LUMJBypsfB6TKi2qixXA8il3KIxd5pTSc+BGys/pLo= Received: by 10.67.96.14 with SMTP id y14mr2019633ugl.1173198526837; Tue, 06 Mar 2007 08:28:46 -0800 (PST) Received: from ?192.168.1.34? ( [81.107.195.185]) by mx.google.com with ESMTP id y34sm17759187iky.2007.03.06.08.28.44; Tue, 06 Mar 2007 08:28:44 -0800 (PST) Message-ID: <45ED96BB.4050408@enterprisedb.com> Date: Tue, 06 Mar 2007 16:28:43 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: "Jason L. Buberel" CC: pgsql-jdbc@postgresql.org Subject: Re: Modifying the concurrent transaction limit References: <45ED92DD.3080307@buberel.org> In-Reply-To: <45ED92DD.3080307@buberel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/51 X-Sequence-Number: 16765 Jason L. Buberel wrote: > A. Is there really a built-in limit to the number of concurrent > transactions? > B. Can this value be configured? There certainly isn't in PostgreSQL. There is a configurable limit on the number of connections (max_connections in postgresql.conf), and another limit on the number of two-phase commit transactions in prepared state (max_prepared_transactions). You'll need to look at your application and Hibernate... > I have done what I can to try and ensure that these transactions are > cleaned up when processing completes, but sometimes garbage collection > does not occur soon enough and I accumulate 50 open transactions, > wedging the process. If there is something else that I should be doing > to avoid this type of problem, please suggest! The usual pattern for closing resources is to release finite resources manually in a finally-clause, instead of waiting for the garbage collector to deal with it. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com