开发者社区 > 云原生 > 正文

打开文件过多

报错日志如下,不知道是什么原因导致的:

2021-10-15 16:55:22.045 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming:548 - request: /nacos/v1/ns/instance/list failed, servers: [192.168.1.199:8848], code: 500, msg: Too many open files 2021-10-15 16:55:30.039 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming:613 - [NA] failed to request java.net.SocketException: Too many open files at java.net.Socket.createImpl(Socket.java:478) at java.net.Socket.connect(Socket.java:605) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) at com.alibaba.nacos.common.http.client.request.JdkHttpClientRequest.execute(JdkHttpClientRequest.java:109) at com.alibaba.nacos.common.http.client.NacosRestTemplate.execute(NacosRestTemplate.java:482) at com.alibaba.nacos.common.http.client.NacosRestTemplate.exchangeForm(NacosRestTemplate.java:427) at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:599) at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:524) at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:491) at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:486) at com.alibaba.nacos.client.naming.net.NamingProxy.queryList(NamingProxy.java:400) at com.alibaba.nacos.client.naming.core.HostReactor.updateService(HostReactor.java:339) at com.alibaba.nacos.client.naming.core.HostReactor$UpdateTask.run(HostReactor.java:420) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2021-10-15 16:55:30.039 [com.alibaba.nacos.client.naming.updater] ERROR com.alibaba.nacos.client.naming:613 - [NA] failed to request

原提问者GitHub用户aliujb

展开
收起
学习娃 2023-05-22 16:15:09 158 0
1 条回答
写回答
取消 提交回答
  • 问题找到了 不是nacos的问题,是 systemctl的问题,systemctl 设置的最大连接时 4k

    原回答者GitHub用户wangdongyun

    2023-05-23 09:35:46
    赞同 展开评论 打赏
问答分类:
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载