Getting error as "Java.net.SocketException: No buffer space available (maximum connections reached?): connect at java.net.DualStackPlainSocketImpl.connect0(Native Method)" in Jmeter

409 views
Skip to first unread message

myperfm...@gmail.com

unread,
Oct 20, 2015, 9:19:54 AM10/20/15
to jmeter-plugins
Hi,

While load testing of Webservice API with Jmeter 2.13 i am getting error as "
"Java.net.SocketException: No buffer space available (maximum connections reached?): connect at java.net.DualStackPlainSocketImpl.connect0(Native Method)"

I am using Stepping thread with 200 threads, adding next 30 threads in 30 sec and holding load for around 20 minutes. Response time is quite faster (approx 20 ms).

My questions are like:
1. Is it related to server error or Jmeter http sampler error? 
2. It might be case of Jmeter is not closing connections and hence cannot create new connections further, is it?
3. Is server is not closing unused connection and not able to create new one?

I also rerun the test with below adding setting in jmeter.properties file:

httpclient.timeout=60000 #60 seconds

http.socket.timeout=60000 #60 seconds

but the error still exist.

Please suggest how to resolve this issue. Any help is appreciated. Thanks


Regards
Rupali
Reply all
Reply to author
Forward
0 new messages