简体   繁体   English

jmeter给出错误没有可用的缓冲区空间(已达到最大连接数?):connect

[英]jmeter give an error No buffer space available (maximum connections reached?): connect

Number of threads = 20 
Ramp-up period = 10 
Loop count = 200

gives an error after some time: 一段时间后给出错误:

java.net.SocketException: No buffer space available (maximum connections reached?): connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    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 sun.net.NetworkClient.doConnect(NetworkClient.java:163)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
    at sun.net.www.http.HttpClient.New(HttpClient.java:307)
    at sun.net.www.http.HttpClient.New(HttpClient.java:324)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:483)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1018)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1004)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:411)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:297)
    at java.lang.Thread.run(Thread.java:662)

Seems you likely have problems not with your jmeter instance but with os / env. 似乎您的问题不是jmeter实例,而是os / env。

  1. Look into advises per these links: 通过以下链接查看建议:
    Hunt down java.net.SocketException: No buffer space available 搜索java.net.SocketException:没有可用的缓冲区空间
    http://www.codeweblog.com/no-buffer-space-available/ http://www.codeweblog.com/no-buffer-space-available/

  2. If you are running your jmeter supposably on OS like WinXP please look into these instructions . 如果您想在诸如WinXP的操作系统上运行jmeter,请仔细阅读以下说明

Might be that you are not closing connections. 可能是您没有关闭连接。 Try changing the Keep Alive option on the sampler but remember to check what is actually being sent with real requests from a real browser (you don't want to mask a potential issue). 尝试更改采样器上的“保持活动”选项,但要记住检查来自真实浏览器的真实请求实际发送的内容(您不想掩盖潜在的问题)。 It could also be that your server is not configured to close connections, which again may be a real problem with you application. 也可能是您的服务器未配置为关闭连接,这又可能是应用程序真正的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.net.SocketException:没有可用的缓冲区空间(已达到最大连接数?):connect - java.net.SocketException: No buffer space available (maximum connections reached?): connect java.net.SocketException:没有可用的缓冲区空间(已达到最大连接?):connect MongoDB JAVA API驱动程序 - java.net.SocketException: No buffer space available (maximum connections reached?): connect MongoDB JAVA API Driver Java套接字服务器提供java.net.SocketException:没有可用的缓冲区空间(已达到最大连接数?):connect异常 - Java socket server gives java.net.SocketException: No buffer space available (maximum connections reached?): connect exception 使用HTTPBuilder并获得“ java.net.SocketException:没有可用的缓冲区空间(已达到最大连接?):connect” - Using HTTPBuilder and getting “java.net.SocketException: No buffer space available (maximum connections reached?): connect” 休息模板 - 没有可用的缓冲区空间(已达到最大连接数?) - Rest Template - No buffer space available (maximum connections reached?) Java套接字:没有可用的缓冲区空间(达到最大连接数?) - Java Sockets: No buffer space available (maximum connections reached?) 没有可用的缓冲区空间,已达到最大连接数 - No buffer space available, maximum connection reached 本地异常失败:java.net.SocketException:没有可用的缓冲区空间(已达到最大连接数?): - Failed on local exception: java.net.SocketException: No buffer space available (maximum connections reached?): java.net.SocketException:没有可用的缓冲区空间(已达到最大连接数?):(添加netstat -a) - java.net.SocketException: No buffer space available (maximum connections reached?):(adding netstat -a) 没有可用的缓冲区空间(已达到最大连接?)表格Postgres EDB驱动程序 - No Buffer Space available(maximum connection reached?) Form Postgres EDB Driver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM