Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJYRs-0003JO-6e for pgsql-jdbc@arkaria.postgresql.org; Tue, 19 Aug 2014 01:42:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJYRr-0006wx-MC for pgsql-jdbc@arkaria.postgresql.org; Tue, 19 Aug 2014 01:42:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJYRp-0006wo-L1 for pgsql-jdbc@postgresql.org; Tue, 19 Aug 2014 01:42:53 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJYRh-00018J-QE for pgsql-jdbc@postgresql.org; Tue, 19 Aug 2014 01:42:51 +0000 Received: from ayaki.localdomain (58-7-167-251.dyn.iinet.net.au [58.7.167.251]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0LbvF2-1WcUOs1uWC-00jLX3; Tue, 19 Aug 2014 03:42:36 +0200 Message-ID: <53F2AB86.7030502@2ndquadrant.com> Date: Tue, 19 Aug 2014 09:42:30 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: "Lussier, Denis" , Barry Bell CC: Dave Cramer , "pgsql-jdbc@postgresql.org" Subject: Re: [ODBC] BIRT report opening multiple connections References: <7d652dd9937d4221805e16bc611c1a7e@BY2PR08MB281.namprd08.prod.outlook.com> <1aa9872970a9484784af32fa50e4521f@BY2PR08MB281.namprd08.prod.outlook.com> <2aa11512ea054bf996317af5b427ae09@BY2PR08MB281.namprd08.prod.outlook.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:BPZ+g8iqTmIlGbQ/xFutqZQk1AaPP+5JLXDdePtER7z H1JKA9z80pNfBJ++Lf3J0U36GVGXw9TwDRbx+EcYTndBSXJCyo YHK87N6nvoj7zu9E5guweaD0tgUe5f1nlkIKTJXk7+LW/Y+4iq Glb0GipImZbT0jTeDfwQ0wGCKyg9uSWwUgF8verYATICMaPRNO ZyetE9D/y9u6ORdOjzLyHnd0CKVa0Zc5t5wxzbPQNKCY0rG7/Q Y597CimNklPl+Edf7awfN5KYZEiw1pIJbNZllOUg1C9zwFZjhN xWXxkUsH8QLCeT9XH80ZzpFWRC0TvMkIsGDTUJgxuiZTBMW2UT D0gxLePXY3tc89PKL/QJQpa+WnegJAPef9M3B99cU X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 08/15/2014 09:49 PM, Lussier, Denis wrote: > My suspicion is that Barry is deploying his BIRT reports in a web > container that is using connection pooling to the RDBMS. Since the > BIRT report doesn't seem to be issuing a a close(), the connection > pooler keeps using a new physical connection for each subquery. My own WAG is that they've configured PgJDBC using org.postgresql.Driver or org.postgresql.ds.PGSimpleDataSource but have used DataSource implementations with internal pooling on other vendors' drivers. All we can do is hand-wave, guess, and waste time without at minimum seeing: - The code; and - the database connection configuration details so Barry, please provide those details. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc