Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-331

Thread getting blocked : Blocked trying to get lock: org.apache.log4j.spi.RootLogger@21cb1369[not locked]

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Labels:
      None

      Description

      We are using slf4j version 1.6.1 and one of the thread related log4j is getting stuck.We are facing a major delay issue due this thread block.Could you please help us to resolve this issue. Below are the thread dumps we have collected for this:

      =======================================================================
      ####<Jul 21, 2015 9:23:58 AM IST> <Error> <WebLogicServer> <aukpczbr.dc-dublin.de> <aukpczbr_p2> <[STANDBY] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1437467038600> <BEA-000337> <[STUCK] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "652" seconds working on the request "weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl@58887aee", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
      Thread-3471 "[STUCK] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, suspended, blocked, priority=1, DAEMON> {
      – Blocked trying to get lock: org.apache.log4j.spi.RootLogger@21cb1369[not locked]
      org.apache.log4j.Category.callAppenders(Category.java:204)
      org.apache.log4j.Category.forcedLog(Category.java:391)
      org.apache.log4j.Category.log(Category.java:856)
      org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:541)
      com.vodafone.pciadaptor.core.emis.HttpConnectionProbe.onRun(HttpConnectionProbe.java:105)
      com.vodafone.pciadaptor.core.scheduling.AbstractScheduledTask.run(AbstractScheduledTask.java:42)
      org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51)
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      org.springframework.scheduling.commonj.TimerManagerTaskScheduler$TimerScheduledFuture.timerExpired(TimerManagerTaskScheduler.java:112)
      org.springframework.scheduling.commonj.TimerManagerTaskScheduler$ReschedulingTimerListener.timerExpired(TimerManagerTaskScheduler.java:165)
      weblogic.timers.internal.commonj.ListenerWrap.timerExpired(ListenerWrap.java:37)
      weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
      weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
      }

      >

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              aakash Aakash Lodha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: