- 问题现象
FE节点挂掉,在FE的日志里面有发现如下的异常,暂时不确定该异常是否会导致FE挂掉。
starrocks 版本:2.2.8
2023-02-25 11:07:29,742 WARN (starrocks-mysql-nio-pool-15540|1488653) [ReadListener.lambda$handleEvent$0():63] Exception happened in one session(com.starrocks.mysql.nio.NConnectContext@7b4767a2).
java.io.IOException: Error happened when receiving packet.
at com.starrocks.qe.ConnectProcessor.processOnce(ConnectProcessor.java:693) ~[starrocks-fe.jar:?]
at com.starrocks.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:55) ~[starrocks-fe.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]
- 官方给出的解决办法
调整/proc/sys/net/ipv4/tcp_abort_on_overflow为1,表示链接队列满的时候不重试而返回reset
调整队列大小/proc/sys/net/core/somaxconn为1024,默认128,可能不够
- 线上参数
目前线上配置值为:
/proc/sys/net/ipv4/tcp_abort_on_overflow为0
/proc/sys/net/core/somaxconn为1024
目前打算调整下第一文件值为1在观察看看
https://forum.mirrorship.cn/t/topic/1251
标签:starrocks,java,when,packet,FE,ThreadPoolExecutor,proc,happened From: https://www.cnblogs.com/yjt1993/p/17154061.html