Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Fwd: java.net.SocketException:No buffer space available (maximum connections reached?):

Hi,

On Fri, Mar 19, 2021 at 7:20 AM Prakash Nandihal <p.nandihal@xxxxxxxxx> wrote:
>
>
>
> Hi Team,
>
> I am getting below exception when make http2 post requests at the rate of 3000 Requests per second. Can you please let us know what could be the root cause for this issue.
>
> Exception:
>
>      [java] java.net.SocketException: No buffer space available (maximum connections reached?): connect
>      [java]     at sun.nio.ch.Net.connect0(Native Method) ~[?:1.8.0_271]
>      [java]     at sun.nio.ch.Net.connect(Net.java:465) ~[?:1.8.0_271]
>      [java]     at sun.nio.ch.Net.connect(Net.java:457) ~[?:1.8.0_271]
>      [java]     at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:646) ~[?:1.8.0_271]

You have a client machine that is too small for the load that you want
to generate.

This is not a Jetty issue, just that your hardware has reached its
configured limits.

Try to play with the OS configuration, or use more machines if you
want to generate more load.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top