Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKIUs-0000Cp-EO for pgsql-jdbc@postgresql.org; Sat, 06 Oct 2012 00:44:02 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKIUp-0006po-QY for pgsql-jdbc@postgresql.org; Sat, 06 Oct 2012 00:44:01 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id C163928420; Fri, 5 Oct 2012 20:43:58 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id A969DA31D; Fri, 5 Oct 2012 20:43:58 -0400 (EDT) Date: Fri, 5 Oct 2012 20:43:58 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "emergency.shower@gmail.com" cc: pgsql-jdbc@postgresql.org Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/17 X-Sequence-Number: 23341 On Fri, 5 Oct 2012, emergency.shower@gmail.com wrote: > after the upgrade the latest PortgreSQL 9.2-1000 JDBC 4 driver, we > discovered a severe performance degradation when connecting to 8.4, > 9.0, 9.1, and 9.2 servers. In a test application the > DriverManager#getConnection(String, String, String) call constantly > took > 4500 ms compared to < 20 ms with the previous 9.1-903 JDBC 4 > driver. This makes the driver virtually unusable in production > environments. Can you show us the connection URL that you are using? Are you using SSL? It appears that some of the 9.2 changes may require a DNS lookup that they didn't before and you might be getting a timeout there. Any DNS issues on your side? Kris Jurka