Disruptor memory management

2016-11-09 Thread David Leonhartsberger
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

Re: Log4j2 script to generate hash

2016-11-09 Thread Remko Popma
According to this https://logging.apache.org/log4j/2.x/manual/filters.html#Script you should be able to use the variable named loggerName in global script filters. Sent from my iPhone > On 10 Nov 2016, at 4:31, Benjamin Jaton wrote: > > Hmm, I'm not sure, I tried

Re: Log4j2 script to generate hash

2016-11-09 Thread Benjamin Jaton
Hmm, I'm not sure, I tried to do this in groovy: println(args[0]) But I get: Caused by: groovy.lang.MissingPropertyException: No such property: args for class: Script2 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53) at