logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: Disruptor memory management
Date Thu, 10 Nov 2016 09:04:31 GMT
Yes, this is the default. 

You can can reduce the ring buffer size in the configuration to reduce memory consumption.

An alternative is to switch off garbage-free mode by setting system property "log4j2.enable.threadlocals"
to false. This will cause Log4j to cache less and allocate temporary objects on the fly. 

Sent from my iPhone

> On 10 Nov 2016, at 16:55, David Leonhartsberger <leozilla@gmail.com> wrote:
> Hi,
> I just checked one heap dump and I see that all array elements in the
> Disruptor keep track of a StringBuilder with size of 128.
> I currently use a capacity of 56k so this means I retain around 30MB of
> heap in idle situations.
> Is this the default behaviour of log4j or am I doing something wrong?
> Br,
> David

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

View raw message