[ 
https://issues.apache.org/jira/browse/LOG4J2-3500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17543848#comment-17543848
 ] 

Volkan Yazici commented on LOG4J2-3500:
---------------------------------------

I don't know much about OSGi, but the following stack trace makes me suspect 
Apache Karaf's appender implementation ({{LogServiceImpl.java:176}}), not 
Log4j. Am I mistaken?

{code}
"XNIO-46 task-24" #2425 daemon prio=5 os_prio=0 tid=0x00007f9298148800 
nid=0x36b2 waiting for monitor entry [0x00007f91a474f000]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at 
org.apache.karaf.log.core.internal.LogServiceImpl.doAppend(LogServiceImpl.java:176)
        - waiting to lock <0x0000000670d72930> (a 
org.apache.karaf.log.core.internal.LogServiceImpl)
        at 
org.ops4j.pax.logging.spi.support.PaxAppenderProxy.doAppend(PaxAppenderProxy.java:69)
        at 
org.ops4j.pax.logging.log4j2.internal.bridges.PaxOsgiAppender.append(PaxOsgiAppender.java:100)
        at 
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
        at 
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
{code}

> Deadlock in Log4j
> -----------------
>
>                 Key: LOG4J2-3500
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3500
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.12.1
>            Reporter: Gianfranco Amatore
>            Priority: Major
>         Attachments: tdump.2022-03-31 13_10_15.out
>
>
> I encountered a problem on our ESB (Red Hat Fuse 7.6), it seems that the 
> log4j dead locked while writing the log file. The whole jvm remains blocked 
> for about 10 mins, then it starts again executing. Attached the thread-dump 
> that shows the deadlock.
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to