pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: George Woodring <george.woodring@iglass.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Random UnknownHostExceptions
Date: Thu, 28 Jun 2012 18:02:32 +0200
Message-ID: <m3obo3tofb.fsf@mnc.ch> (raw)
In-Reply-To: <CACi+J=TbDfkTe1fE6uTPNSAbq=a9SzFby8xCA68XNoaa+1VJbA@mail.gmail.com>
References: <CACi+J=TbDfkTe1fE6uTPNSAbq=a9SzFby8xCA68XNoaa+1VJbA@mail.gmail.com>

George Woodring <george.woodring 'at' iglass.net> writes:

> Caused by: java.net.UnknownHostException: iprobe113
>
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>        at java.net.Socket.connect(Socket.java:529)
>        at java.net.Socket.connect(Socket.java:478)
>        at java.net.Socket.<init>(Socket.java:375)
>        at java.net.Socket.<init>(Socket.java:189)
>        at org.postgresql.core.PGStream.<init>(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/Tc...

Btw, one per 100K connections means you keep on creating new
connections. This usually has very poor performance. You should
use a connection pool.

-- 
Guillaume Cottenceau



view thread (3+ messages)

Message-ID: <m3obo3tofb.fsf@mnc.ch>
Permalink:  ../m3obo3tofb.fsf@mnc.ch/
Also on:    postgresql.org/message-id/m3obo3tofb.fsf@mnc.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: gc@mnc.ch, george.woodring@iglass.net
  Subject: Re: Random UnknownHostExceptions
  In-Reply-To: <m3obo3tofb.fsf@mnc.ch>
  References: <CACi+J=TbDfkTe1fE6uTPNSAbq=a9SzFby8xCA68XNoaa+1VJbA@mail.gmail.com> <m3obo3tofb.fsf@mnc.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox