Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-513

Hundreads of threads in Wait state with below stack trace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.1.1, 2.6.0
    • 2.6.0
    • None
    • Java Version: 

      1.8.0_121

       OS Complete Version: 

      Linux sdpvvrwm556 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Dec 28 14:23:39 EST 2017 x86_64 x86_64 x86_64 GNU/Linux

       

      DBCP Jar:

      commons-dbcp2-2.1.1.jar

    Description

      Hello Team,

      Our application suddenly stops responding, when we checked thread dump, most of the threads are in wait state with below stack trace, we had to restart server to make it active, can you pelase provide your inputs on the root cause & resolution?

       

      "JSockConn Thread #4532" #40906 prio=5 os_prio=0 tid=0x00007f84382ce800 nid=0xc692 waiting on condition [0x00007f83d38f8000]
      java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)

      • parking to wait for <0x00000005c30a11b8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
        at org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:583)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:442)
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
        at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:134)
        at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)

      Attachments

        1. dbcp_lock_1.txt
          12 kB
          Mark Struberg
        2. dbcp_lock_7.txt
          27 kB
          Mark Struberg
        3. dbcpthread.zip
          24 kB
          HARSHIT AGARWAL
        4. image-2018-12-24-08-42-34-611.png
          85 kB
          Abhishek Rao
        5. image-2018-12-24-08-45-09-224.png
          83 kB
          Abhishek Rao
        6. image-2018-12-24-08-54-06-625.png
          133 kB
          Abhishek Rao
        7. Screen Shot 2018-08-05 at 10.29.52 AM.png
          134 kB
          HARSHIT AGARWAL

        Issue Links

          Activity

            People

              struberg Mark Struberg
              mahesh537 Mahesh
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: