On 11 October 2010 18:36, Christopher Laux <[email protected]> wrote:
> Hi all,
>
> I'm using httpclient v4.0.3 in a multi-threaded (currently 20 threads)
> setup, and am receiving unexpected UnknownHostException s.
>
> Some of the threads seem to be resolving without problems, I can
> execute a manual dig at the same time without any issues and the
> UnknownHostExceptions are coming in at a rate (1000s per second) that
> indicates the Java part of the system isn't even connecting to named
> (and possible attempts don't show up as udp packet on the lo
> interface). I tried both with my own localhost named and with that of
> my hosting provider, I also changed upstream DNS servers...
>
> Sample stack trace below. What am I missing?

I was going to suggest that your host might be running out of
resources needed to connect to named, but that does not seem likely if
you can run dig in parallel.

Might be worth trying a different JVM in case it behaves differently.

Or a different OS ;-) as a bit of googling finds:

http://uclue.com/?xq=2127

which points to a problem with IPv6 and Ubuntu/Java and suggests trying:

-Djava.net.preferIPv4Stack=true


> Thanks,
> Chris
>
>
> java.net.UnknownHostException: marco4bella.blogspot.com
>        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
>        at 
> java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
>        at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
>        at java.net.InetAddress.getAllByName(InetAddress.java:1084)
>        at java.net.InetAddress.getAllByName(InetAddress.java:1020)
>        at 
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:126)
>        at 
> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
>        at 
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
>        at 
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
>        at 
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
>        at 
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
>        at 
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to