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

high contention at ch.qos.logback.core.AsyncAppenderBase.putUninterruptibly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

      Linux server.com 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

      Description

      Disclaimer: I am not sure this is a bug (please excuse if not the case and it is fault in our code somewhere). However, our server stopped processing data yesterday.  All threads were found waiting on AsyncAppenderBase.putUninterruptibly. Stack trace outputted below. To see a comprehensive snapshot of all threads, please visit http://fastthread.io/ and upload the attached cat.zip file. Click on the filequeue-worker link in the Thread Group section to see the problem.

      worker-374 - priority:5 - threadId:0x00007fe456176000 - nativeId:0x313 - state:WAITING
      stackTrace:
      java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)
      - parking to wait for <0x0000000646f11d48> (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 java.util.concurrent.ArrayBlockingQueue.put(ArrayBlockingQueue.java:353)
      at ch.qos.logback.core.AsyncAppenderBase.putUninterruptibly(AsyncAppenderBase.java:181)
      at ch.qos.logback.core.AsyncAppenderBase.put(AsyncAppenderBase.java:172)
      at ch.qos.logback.core.AsyncAppenderBase.append(AsyncAppenderBase.java:161)
      at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
      at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
      at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
      at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
      at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
      at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
      at ch.qos.logback.classic.Logger.error(Logger.java:522)
      
      
      

       

        Attachments

          Activity

            People

            Assignee:
            logback-dev Logback dev list
            Reporter:
            jamieb22 Jamie
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: