I am running my java process in Tomcat 8.5.3 while starting the tomcat application run perfectly but after sometime process goes to hung state and it will stop processing the request.
I have taken the thread dump at the time of process is getting hung and I can see there is one blocked thread. But I am not sure what is causing this thread to block and looks like this is related to tomcat NIO not from my process.
java.lang.Thread.State: BLOCKED (on object monitor) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:234) - waiting to lock <0x00000004ce6f94a0> (a java.lang.Object) at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:457) at java.lang.Thread.run(Thread.java:748) "http-nio-8101-Acceptor-0" #163 daemon prio=5 os_prio=0 tid=0x00007f8ec079c800 nid=0x89c8 runnable [0x00007f8c925ec000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250) - locked <0x00000004ce6f94a0> (a java.lang.Object) at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:457) at java.lang.Thread.run(Thread.java:748)
https://stackoverflow.com/questions/66962199/process-is-getting-hung-deployed-in-tomcat April 06, 2021 at 11:05AM
没有评论:
发表评论