logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1340) AsyncLogger's Ringbuffer holding all JVM memory
Date Tue, 05 Apr 2016 00:31:25 GMT

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

Remko Popma commented on LOG4J2-1340:
-------------------------------------

There are two flavors of Async Loggers. 

# You are using "mixed sync and async loggers". RingBuffer slots are cleared in the [Log4jEventWrapperHandler.onEvent()|http://logging.apache.org/log4j/2.x/log4j-core/xref/org/apache/logging/log4j/core/async/AsyncLoggerConfigDisruptor.html#L87]
method: the call to [Log4jEventWrapper.clear()|http://logging.apache.org/log4j/2.x/log4j-core/xref/org/apache/logging/log4j/core/async/AsyncLoggerConfigDisruptor.html#L67]
# The other flavor is "all loggers async". RingBuffer slots are cleared in the [RingBufferLogEventHandler.onEvent()|http://logging.apache.org/log4j/2.x/log4j-core/xref/org/apache/logging/log4j/core/async/RingBufferLogEventHandler.html#L41]
method: the call to [RingBufferLogEvent.clear()|http://logging.apache.org/log4j/2.x/log4j-core/xref/org/apache/logging/log4j/core/async/RingBufferLogEvent.html#L245].



> AsyncLogger's Ringbuffer holding all JVM memory
> -----------------------------------------------
>
>                 Key: LOG4J2-1340
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1340
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5
>         Environment: Linux 2.6.32-431.17.1.el6.x86_64 x86_64
> java version "1.7.0_75"
> OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13)
> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
>            Reporter: Soma
>         Attachments: heapdump.JPG
>
>
> JVM getting Out of memory. when I see the heapdump analysis I found 93% of memory occupied
by AsyncLogger's RingBuffer. we have total of 5 AsyncLoggers in our applications each having
default buffer size.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message