开发者社区 > 云存储 > 正文

做表格存储压力测试,100万条记录,5个线程,使用异步SDK,报下面这个错误。 com.aliclo

做表格存储压力测试,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

展开
收起
真的很搞笑 2023-05-02 23:50:21 292 0
1 条回答
写回答
取消 提交回答
  • 群里聊,此回答整理自钉群“表格存储技术交流群-2”

    2023-05-03 18:58:01
    赞同 展开评论 打赏

阿里云存储基于飞天盘古2.0分布式存储系统,产品多种多样,充分满足用户数据存储和迁移上云需求。

相关电子书

更多
一个跨平台的云服务SDK需要什么 立即下载
表格存储实时数据流Steam的技术揭秘和应用场景 立即下载
表格存储(TableStore) 立即下载