com.alibaba.nacos.client.Worker.longPolling.fixed-mse
com.alibaba.nacos.client.Worker.longPolling 这个线程池是1.x的nacos-client的长轮训线程,数量应该为 NacosConfigService数量 * CPU 数量
可能原因
系统环境问题。程序读取到的CPU数量错误,导致线程池核心大小和最大大小过大。
应用中创建过多Nacos-Client实例, 例如NacosNamingService或NacosConfigService。
"com.alibaba.nacos.client.Worker.longPolling.fixed-mse-b9d692e0-p.nacos-ans.mse.aliyuncs.com_8848-cc1af948-4f18-46a9-8f9a-bd0239a0a43d@10585" daemon prio=5 tid=0x78 nid=NA runnable java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(SocketInputStream.java:-1) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) - locked <0x2b93> (a java.io.BufferedInputStream) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:779) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:714) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1607) - locked <0x2b94> (a sun.net.www.protocol.http.HttpURLConnection) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1512) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at com.alibaba.nacos.client.config.impl.HttpSimpleClient.httpPost(HttpSimpleClient.java:125) at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:135) at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpPost(MetricsHttpAgent.java:64) at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateConfigStr(ClientWorker.java:377) at com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateDataIds(ClientWorker.java:352) at com.alibaba.nacos.client.config.impl.ClientWorker$LongPollingRunnable.run(ClientWorker.java:512) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) at java.util.concurrent.FutureTask.run(FutureTask.java:-1) 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:750)
https://help.aliyun.com/zh/mse/support/what-do-i-do-if-the-number-of-nacos-threads-is-excessively-large