hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Greene <mgre...@hubspot.com>
Subject HTTP Async Client - Address already in use with
Date Fri, 02 Nov 2012 19:58:48 GMT
I'm running into an issue where after making about 20k requests to a single
host (200 concurrently) I start seeing these exceptions'

  java.net.BindException: Address already in use
>
> at sun.nio.ch.Net.connect(Native Method)
>
> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:532)
>
> at
> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processSessionRequests(DefaultConnectingIOReactor.java:275)
>
> at
> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:140)
>
> at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:374)
>
> at
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.execute(PoolingClientAsyncConnectionManager.java:108)
>
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.doExecute(AbstractHttpAsyncClient.java:464)
>
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.access$000(AbstractHttpAsyncClient.java:101)
>
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient$1.run(AbstractHttpAsyncClient.java:485)
>

Is this a form of back pressure? What can I do to avoid these types of
errors?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message