Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1199

Activemq 18 pool connection and Database 7 connection com.mchange.v2.c3p0.ComboPooledDataSource, unsafe.park stack trace All pool threads are waiting for database Queue

    XMLWordPrintable

Details

    Description

      ch.qos.logback.classic.AsyncAppender has been used in my application for logging . PFA logback file.

      Activemq 18 pool connection and Database 7 connection com.mchange.v2.c3p0.ComboPooledDataSource, unsafe.park stack trace All pool threads are waiting for database Queue.

      Please check below 2 thread stack trace. Threads are not getting back in runnable mode.

      Stack trace:
      sun.misc.Unsafe.park(Native Method)
      java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
      java.util.concurrent.ArrayBlockingQueue.put(ArrayBlockingQueue.java:353)
      ch.qos.logback.core.AsyncAppenderBase.put(AsyncAppenderBase.java:160)
      ch.qos.logback.core.AsyncAppenderBase.append(AsyncAppenderBase.java:148)
      ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
      ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48)
      ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
      ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
      ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
      ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
      ch.qos.logback.classic.Logger.info(Logger.java:579)
      com.cox.ccpt.ivr.lrx.consumer.Task.run(Task.java:69)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)

      Stack trace:
      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Object.java:502)
      org.apache.activemq.SimplePriorityMessageDispatchChannel.dequeue(SimplePriorityMessageDispatchChannel.java:87)
      org.apache.activemq.ActiveMQMessageConsumer.dequeue(ActiveMQMessageConsumer.java:470)
      org.apache.activemq.ActiveMQMessageConsumer.receive(ActiveMQMessageConsumer.java:522)
      org.apache.activemq.pool.PooledMessageConsumer.receive(PooledMessageConsumer.java:62)
      com.cox.ccpt.ivr.lrx.consumer.Task.run(Task.java:68)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)

      Attachments

        1. logback.txt
          2 kB
          Satish Kumar Kesharwani

        Activity

          People

            logback-dev Logback dev list
            satish.wipro2012@gmail.com Satish Kumar Kesharwani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: