Logback - Reentrant Lock?

1.2k views Asked by At

We are using logback as our logging impl. There is this Reentrant lock that is causing performance problems. Any idea of why this could occur ?

Here is one invocation trace where we see high as 9.5 sec for lock. Please find attached the complete trace.

FrameworkServlet.service:unknown (160ms self time, 36258 ms total time)
HttpServlet.service:621 (0ms self time, 36098 ms total time)
  DispatcherServlet.doService:838 (0ms self time, 31639 ms total time)
   DispatcherServlet.doDispatch:910 (0ms self time, 30835 ms total time)
    Logger.log:788 (0ms self time, 9485 ms total time)
     Logger.filterAndLog_0_Or3Plus:396 (0ms self time, 9485 ms total time)
      Logger.buildLoggingEventAndAppend:442 (0ms self time, 9485 ms total time)
       Logger.callAppenders:260 (0ms self time, 9485 ms total time)
        Logger.appendLoopOnAppenders:273 (0ms self time, 9485 ms total time)
         AppenderAttachableImpl.appendLoopOnAppenders:48 (0ms self time, 9485 ms total time)
          UnsynchronizedAppenderBase.doAppend:88 (0ms self time, 9485 ms total time)
           OutputStreamAppender.append:103 (0ms self time, 9485 ms total time)
            OutputStreamAppender.subAppend:217 (0ms self time, 9485 ms total time)
             ReentrantLock.lock:290 (9485ms self time, 9485 ms total time)

Image Attached : Reentrant lock

0

There are 0 answers