Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1DE8C1AA5B9C for ; Thu, 28 Jun 2012 13:02:50 -0300 (ADT) Received: from 62-2-77-205.static.cablecom.ch ([62.2.77.205] helo=mail.mnc.ch) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SkHBA-0000x1-Ui for pgsql-jdbc@postgresql.org; Thu, 28 Jun 2012 16:02:50 +0000 Received: from localhost (kolab.op.lan [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id B1E3965C19; Thu, 28 Jun 2012 18:02:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mnc.ch Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.mnc.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eSNwZ78LM+46; Thu, 28 Jun 2012 18:02:33 +0200 (CEST) Received: from localhost (kolab.op.lan [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 0A6B565F54; Thu, 28 Jun 2012 18:02:33 +0200 (CEST) Received: from gc.localdomain (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id D91B065C19; Thu, 28 Jun 2012 18:02:32 +0200 (CEST) Received: by gc.localdomain (Postfix, from userid 500) id 7D9541893DB; Thu, 28 Jun 2012 18:02:32 +0200 (CEST) To: George Woodring Cc: pgsql-jdbc@postgresql.org Subject: Re: Random UnknownHostExceptions References: From: Guillaume Cottenceau X-Hashcash: 1:21:120628:george.woodring@iglass.net::0KBldWTUOkT6kg4j:00000000000000000000000000000000000VHNp X-Hashcash: 1:21:120628:pgsql-jdbc@postgresql.org::NiLI9KQtkygckKiD:000000000000000000000000000000000000pXbT Date: Thu, 28 Jun 2012 18:02:32 +0200 In-Reply-To: (George Woodring's message of "Thu\, 28 Jun 2012 11\:31\:44 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/100 X-Sequence-Number: 23094 George Woodring writes: > Caused by: java.net.UnknownHostException: iprobe113 > > =A0 =A0 =A0 =A0at java.net.PlainSocketImpl.connect(PlainSocketImpl.java= :177) > =A0 =A0 =A0 =A0at java.net.SocksSocketImpl.connect(SocksSocketImpl.java= :366) > =A0 =A0 =A0 =A0at java.net.Socket.connect(Socket.java:529) > =A0 =A0 =A0 =A0at java.net.Socket.connect(Socket.java:478) > =A0 =A0 =A0 =A0at java.net.Socket.(Socket.java:375) > =A0 =A0 =A0 =A0at java.net.Socket.(Socket.java:189) > =A0 =A0 =A0 =A0at org.postgresql.core.PGStream.(PGStream.java:62) The PG driver seems to be using the standard Socket java interface, so there's little chance it has anything to do with it. I would try to run a local Java program using a Socket object to connect to a fake port on the same machine, for example you could base on network connection code from: http://code.google.com/p/androidnetworktester/source/browse/trunk/src/org= /gc/networktester/tester/TcpConnectionTester.java Btw, one per 100K connections means you keep on creating new connections. This usually has very poor performance. You should use a connection pool. --=20 Guillaume Cottenceau