ubuntu Tomcat IO异常错误:检测到重复的接受,这是一个已知的操作系统错误,请考虑报告您受到的影响:

jhkqcmku  于 2022-11-28  发布在  其他
关注(0)|答案(1)|浏览(1393)

我最近刚迁移到一个新的Spring Boot 版本,即v2.6.2,现在我发现一些服务日志出现以下异常。

23:27:45.148 [main] INFO  o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8080 (https) with context path ''
23:27:47.046 [main] INFO  o.a.c.i.engine.AbstractCamelContext - Routes startup (total:1 started:1)
23:27:47.048 [main] INFO  o.a.c.i.engine.AbstractCamelContext -     Started route1 (jms://queue:inp.contentextractor.entry)
23:27:47.049 [main] INFO  o.a.c.i.engine.AbstractCamelContext - Apache Camel 3.14.0 (camel-1) started in 2s228ms (build:622ms init:1s32ms start:574ms)
23:27:47.061 [main] INFO  eu.hermes.esb.cloud.Application - Started Application in 25.305 seconds (JVM running for 27.737)
23:28:20.356 [https-jsse-nio-8080-exec-4] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
23:28:20.357 [https-jsse-nio-8080-exec-4] INFO  o.s.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
23:28:20.359 [https-jsse-nio-8080-exec-4] INFO  o.s.web.servlet.DispatcherServlet - Completed initialization in 2 ms
00:05:19.986 [https-jsse-nio-8080-Acceptor] ERROR org.apache.tomcat.util.net.Acceptor - Socket accept failed
java.io.IOException: Duplicate accept detected. This is a known OS bug. Please consider reporting that you are affected: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298 
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:545)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:78)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.base/java.lang.Thread.run(Thread.java:834)
05:20:49.981 [https-jsse-nio-8080-Acceptor] ERROR org.apache.tomcat.util.net.Acceptor - Socket accept failed
java.io.IOException: Duplicate accept detected. This is a known OS bug. Please consider reporting that you are affected: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298 
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:545)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:78)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.base/java.lang.Thread.run(Thread.java:834)

它意味着什么,危害有多大?

dbf7pr2w

dbf7pr2w1#

按照bug(https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1924298)中提供的链接,并查看社区成员的评论,似乎在tomcat的使用中发现了linux内核5.10-rc 4中的一个隐藏问题,并且很可能在5.10-rc 6中得到了修复。
这个问题在centOS、amazon linux、Arch linux甚至Window 2019上都有报告--当使用低于5.10的linux内核时。
从这个讨论中得出的结论似乎是建议将操作系统本身更新到使用linux内核的稳定版本〉= 5.10

相关问题