You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Benjamin Jaton <be...@gmail.com> on 2018/06/01 00:18:40 UTC
BLOCKED jstack on AsyncAppender
Hello,
Would anyone have an idea why the AsyncAppender ends up up in a blocked
state given the following stack:
Thread 20497: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information
may be imprecise)
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14,
line=175 (Compiled frame)
-
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt()
@bci=1, line=836 (Compiled frame)
-
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(java.util.concurrent.locks.AbstractQueuedSynchronizer$Node,
int) @bci=67, line=870 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(int)
@bci=17, line=1199 (Compiled frame)
- java.util.concurrent.locks.ReentrantLock$NonfairSync.lock() @bci=21,
line=209 (Compiled frame)
- java.util.concurrent.locks.ReentrantLock.lock() @bci=4, line=285
(Compiled frame)
- java.util.concurrent.ArrayBlockingQueue.offer(java.lang.Object) @bci=10,
line=327 (Compiled frame)
-
org.apache.logging.log4j.core.appender.AsyncAppender.transfer(org.apache.logging.log4j.core.LogEvent)
@bci=31, line=173 (Compiled frame)
-
org.apache.logging.log4j.core.appender.AsyncAppender.append(org.apache.logging.log4j.core.LogEvent)
@bci=71, line=160 (Compiled frame)
-
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(org.apache.logging.log4j.core.LogEvent)
@bci=5, line=156 (Compiled frame)
-
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(org.apache.logging.log4j.core.LogEvent)
@bci=14, line=129 (Compiled frame)
-
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(org.apache.logging.log4j.core.LogEvent)
@bci=10, line=120 (Compiled frame)
-
org.apache.logging.log4j.core.config.AppenderControl.callAppender(org.apache.logging.log4j.core.LogEvent)
@bci=11, line=84 (Compiled frame)
-
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(org.apache.logging.log4j.core.LogEvent)
@bci=20, line=447 (Compiled frame)
-
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(org.apache.logging.log4j.core.LogEvent)
@bci=12, line=432 (Compiled frame)
-
org.apache.logging.log4j.core.config.LoggerConfig.log(org.apache.logging.log4j.core.LogEvent)
@bci=10, line=416 (Compiled frame)
- org.apache.logging.log4j.core.config.LoggerConfig.log(java.lang.String,
java.lang.String, org.apache.logging.log4j.Marker,
org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message,
java.lang.Throwable) @bci=198, line=402 (Compiled frame)
-
org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(org.apache.logging.log4j.util.Supplier,
java.lang.String, java.lang.String, org.apache.logging.log4j.Marker,
org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message,
java.lang.Throwable) @bci=19, line=63 (Compiled frame)
- org.apache.logging.log4j.core.Logger.logMessage(java.lang.String,
org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
org.apache.logging.log4j.message.Message, java.lang.Throwable) @bci=47,
line=146 (Compiled frame)
-
org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(java.lang.String,
org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
org.apache.logging.log4j.message.Message, java.lang.Throwable) @bci=8,
line=2091 (Compiled frame)
- org.apache.logging.log4j.spi.AbstractLogger.logMessage(java.lang.String,
org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
java.lang.String, java.lang.Throwable) @bci=17, line=1988 (Compiled frame)
-
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(java.lang.String,
org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
java.lang.String, java.lang.Throwable) @bci=21, line=1960 (Compiled frame)
- org.apache.logging.log4j.spi.AbstractLogger.info(java.lang.String)
@bci=13, line=1297 (Compiled frame)
Thanks
Benjamin
Re: BLOCKED jstack on AsyncAppender
Posted by Matt Sicker <bo...@gmail.com>.
I'd guess something related to log file rotation, but I'd need to see your
config file to be sure.
On 31 May 2018 at 19:18, Benjamin Jaton <be...@gmail.com> wrote:
> Hello,
>
> Would anyone have an idea why the AsyncAppender ends up up in a blocked
> state given the following stack:
>
> Thread 20497: (state = BLOCKED)
> - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information
> may be imprecise)
> - java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14,
> line=175 (Compiled frame)
> -
> java.util.concurrent.locks.AbstractQueuedSynchronizer.
> parkAndCheckInterrupt()
> @bci=1, line=836 (Compiled frame)
> -
> java.util.concurrent.locks.AbstractQueuedSynchronizer.
> acquireQueued(java.util.concurrent.locks.AbstractQueuedSynchronizer$Node,
> int) @bci=67, line=870 (Compiled frame)
> - java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(int)
> @bci=17, line=1199 (Compiled frame)
> - java.util.concurrent.locks.ReentrantLock$NonfairSync.lock() @bci=21,
> line=209 (Compiled frame)
> - java.util.concurrent.locks.ReentrantLock.lock() @bci=4, line=285
> (Compiled frame)
> - java.util.concurrent.ArrayBlockingQueue.offer(java.lang.Object) @bci=10,
> line=327 (Compiled frame)
> -
> org.apache.logging.log4j.core.appender.AsyncAppender.
> transfer(org.apache.logging.log4j.core.LogEvent)
> @bci=31, line=173 (Compiled frame)
> -
> org.apache.logging.log4j.core.appender.AsyncAppender.append(
> org.apache.logging.log4j.core.LogEvent)
> @bci=71, line=160 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.AppenderControl.
> tryCallAppender(org.apache.logging.log4j.core.LogEvent)
> @bci=5, line=156 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.AppenderControl.
> callAppender0(org.apache.logging.log4j.core.LogEvent)
> @bci=14, line=129 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.AppenderControl.
> callAppenderPreventRecursion(org.apache.logging.log4j.core.LogEvent)
> @bci=10, line=120 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.AppenderControl.
> callAppender(org.apache.logging.log4j.core.LogEvent)
> @bci=11, line=84 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.LoggerConfig.
> callAppenders(org.apache.logging.log4j.core.LogEvent)
> @bci=20, line=447 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.LoggerConfig.
> processLogEvent(org.apache.logging.log4j.core.LogEvent)
> @bci=12, line=432 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.LoggerConfig.log(org.
> apache.logging.log4j.core.LogEvent)
> @bci=10, line=416 (Compiled frame)
> - org.apache.logging.log4j.core.config.LoggerConfig.log(java.lang.String,
> java.lang.String, org.apache.logging.log4j.Marker,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message,
> java.lang.Throwable) @bci=198, line=402 (Compiled frame)
> -
> org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStra
> tegy.log(org.apache.logging.log4j.util.Supplier,
> java.lang.String, java.lang.String, org.apache.logging.log4j.Marker,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message,
> java.lang.Throwable) @bci=19, line=63 (Compiled frame)
> - org.apache.logging.log4j.core.Logger.logMessage(java.lang.String,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
> org.apache.logging.log4j.message.Message, java.lang.Throwable) @bci=47,
> line=146 (Compiled frame)
> -
> org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(java.lang.
> String,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
> org.apache.logging.log4j.message.Message, java.lang.Throwable) @bci=8,
> line=2091 (Compiled frame)
> - org.apache.logging.log4j.spi.AbstractLogger.logMessage(java.lang.String,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
> java.lang.String, java.lang.Throwable) @bci=17, line=1988 (Compiled frame)
> -
> org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(java.lang.String,
> org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker,
> java.lang.String, java.lang.Throwable) @bci=21, line=1960 (Compiled frame)
> - org.apache.logging.log4j.spi.AbstractLogger.info(java.lang.String)
> @bci=13, line=1297 (Compiled frame)
>
> Thanks
> Benjamin
>
--
Matt Sicker <bo...@gmail.com>