[英]Tomcat throws java.lang.IllegalMonitorStateException: null when doing data writing, why?
SpringBoot's embeded tomcat throws a IllegalMonitorStateException when writing data back to some http request in our production environment. SpringBoot 的嵌入式 tomcat 在我们的生产环境中将数据写回某些 http 请求时会引发 IllegalMonitorStateException。 It happens more frequently at high load.
它在高负载时更频繁地发生。
tomcat verion: tomcat-embed-core:9.0.31 tomcat 版本: tomcat-embed-core:9.0.31
Below is part of the stacktrace:以下是堆栈跟踪的一部分:
java.lang.IllegalMonitorStateException: null
at java.lang.Object.wait(Native Method)
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1290)
at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:741)
at org.apache.tomcat.util.net.SocketWrapperBase.flushBlocking(SocketWrapperBase.java:694)
at org.apache.tomcat.util.net.SocketWrapperBase.flush(SocketWrapperBase.java:684)
THANKS.谢谢。
You can try to upgrade the version to 9.0.32, as the part of the logic that you reported an error on, was reverted in 9.0.32.您可以尝试将版本升级到 9.0.32,因为您报告错误的部分逻辑在 9.0.32 中已恢复。
https://github.com/apache/tomcat/commit/6e60713c75141bc00f03f08f759df993a6416c71 https://github.com/apache/tomcat/commit/6e60713c75141bc00f03f08f759df993a6416c71
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.