Original address:
Http://stackoverflow.com/questions/28739600/jvm-hang-and-kill-3-jmap-failed
The Tomcat process has the following exception and is stuck in this state for a few days:
- All threads are stopped, some connections remain in the
SYNC_RECV state
kill -3No output path stack
-
jmapand jstack not working properly
sudo -u tomcat /usr/java/jdk1.6.0_45/bin/jmap -heap 19938Attaching to process ID 19938, please wait...Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can‘t attach to the processsudo -u tomcat /usr/java/jdk1.6.0_45/bin/jmap -heap -F 19938Attaching to process ID 19938, please wait...Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can‘t attach to the process
-
jstat -gcThe output has not changed, even the timestamp field is unchanged
Sudo-u Tomcat/usr/java/jdk1.6.0_45/bin/jstat-gc-t1993810005Timestamp s0c s1c s0u s1u EC EU OC OU PC PU ygc ygct FGC fgct GCT370651.733408.033536.00.032416.03078592.02424720.76291456.074894.4262144.071831.7778.26810.0338.301370651.733408.033536.00.032416.03078592.02424720.76291456.074894.4262144.071831.7778.26810.0338.301370651.733408.033536.00.032416.03078592.02424720.76291456.074894.4262144.071831.7778.26810.0338.301370651.733408.033536.00.032416.03078592.02424720.76291456.074894.4262144.071831.7778.26810.0338.301370651.733408.0 33536. 0 0. 0 32416. 0 3078592. 0 2424720. 7 6291456. 0 74894. 4 262144. 0 71831. 7 77 8. 268 1 0. 033 8. 301
-
CPU is always idle
Environmental information:
-
Linux
Linux xxxx 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
-
Jdk
java version "1.6.0_45"Java(TM) SE Runtime Environment (build 1.6.0_45-b06)Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
-
Java_opts
-server-xms9g-xmx9g-xss256k-Xx:P ermsize=256m-Xx: maxpermsize=256m-Xx: +USEPARALLELGC-Xx:P arallelgcthreads=24-xx:+USEPARALLELOLDGC-XX:+heapdumponoutofmemoryerror-xx: Heapdumppath=/tmp/tomcatdump-xx:+PrintGCDetails-xx:+printgctimestamps-Xloggc:/tmp/tomcatlog.log-xx:NewSize=3g-xx:maxnewsize= 3g-dorg.apache.tomcat.util.buf. Udecoder. allow_encoded_slash=true
-
Tomcat:7.0.54
Update
SYN_RECVThe status should be LVS caused, the initial guess is that LVS detects the Tomcat anomaly after the traffic cut off, resulting in three handshake final ACK packet did not reach the server, the connection card in the SYN_RECV state, but this should not affect the Java process to
https://segmentfault.com/q/1010000002569556
Java process stuck with a deadlock problem