I would trim it to a default max value - something like 10K. Even that seems 
like a lot.  This should be configurable through our properties file.

Ralph

> On Mar 11, 2016, at 1:56 PM, Gary Gregory <[email protected]> wrote:
> 
> So do we need a layout setting to shrink the buffer back down after a while 
> to a user defined level? 
> 
> This is after answering the obvious question of why would you log a 10 MB 
> message?
> 
> Gary
> 
> On Fri, Mar 11, 2016 at 12:38 PM, luca boncompagni <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> Il 11/mar/2016 21:14, "Matt Sicker" <[email protected] 
> <mailto:[email protected]>> ha scritto:
> >
> > Does your app make a lot of large log messages or is it just used in a 
> > couple loggers? Because I think you could use a custom MessageFactory for 
> > those loggers to reduce memory usage at the cost of performance.
> >
> 
> My app is a webapp running on wildfly. Long message are not so frequent, but 
> if I have every thread of wildfly with a StringBuilder of ~ 10Mb I have some 
> serious memory problem.
> 
> Luca
> 
> 
> 
> -- 
> E-Mail: [email protected] <mailto:[email protected]> | 
> [email protected]  <mailto:[email protected]>
> Java Persistence with Hibernate, Second Edition 
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/> 
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>

Reply via email to