Java process stuck with a deadlock problem

Source: Internet
Author: User

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:

  1. All threads are stopped, some connections remain in the SYNC_RECV state
  2. kill -3No output path stack
  3. 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
  4. 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                 
  5. CPU is always idle

Environmental information:

  1. 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
  2. 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)
  3. 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        
  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.