做表格存储压力测试,100万条记录,5个线程,使用异步SDK,报下面这个错误。 com.alicloud.openservices.tablestore.ClientException: Unexpected error: java.net.SocketException: No buffer space available (maximum connections reached?): connect at com.alicloud.openservices.tablestore.core.AsyncCompletion.failed(AsyncCompletion.java:75) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.concurrent.BasicFuture.failed(BasicFuture.java:130) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.DefaultClientExchangeHandlerImpl.connectionRequestFailed(DefaultClientExchangeHandlerImpl.java:318) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.DefaultClientExchangeHandlerImpl.access$100(DefaultClientExchangeHandlerImpl.java:63) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.DefaultClientExchangeHandlerImpl$1.failed(DefaultClientExchangeHandlerImpl.java:364) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.concurrent.BasicFuture.failed(BasicFuture.java:130) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.failed(PoolingNHttpClientConnectionManager.java:474) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.concurrent.BasicFuture.failed(BasicFuture.java:130) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.nio.pool.RouteSpecificPool.failed(RouteSpecificPool.java:165) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.nio.pool.AbstractNIOConnPool.requestFailed(AbstractNIOConnPool.java:527) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.failed(AbstractNIOConnPool.java:775) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.SessionRequestImpl.failed(SessionRequestImpl.java:154) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.DefaultConnectingIOReactor.processSessionRequests(DefaultConnectingIOReactor.java:280) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:141) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:348) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:189) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.CloseableHttpAsyncClientBase.doExecute(CloseableHttpAsyncClientBase.java:67) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.CloseableHttpAsyncClientBase.access$000(CloseableHttpAsyncClientBase.java:38) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at com.aliyun.ots.thirdparty.org.apache.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:57) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_261] Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect at sun.nio.ch.Net.connect0(Native Method) ~[na:1.8.0_261] at sun.nio.ch.Net.connect(Net.java:465) ~[na:1.8.0_261] at sun.nio.ch.Net.connect(Net.java:457) ~[na:1.8.0_261] at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:646) ~[na:1.8.0_261] at com.aliyun.ots.thirdparty.org.apache.impl.nio.reactor.DefaultConnectingIOReactor.processSessionRequests(DefaultConnectingIOReactor.java:272) ~[tablestore-5.13.15-jar-with-dependencies.jar:na] ... 7 common frames omitted
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。