JBoss Community

Re: Performance issue related to logging in JBOSS 5

created by Francesco Marchioni in Performance Tuning - View the full discussion

From your description it's not clear if the performance issue is related mostly to high CPU usage (because of writer threads) or because of high memory pressure (which will trigger longer and frequent garbage collector pauses).

For example, you might try adding to your File Appender configuration:

 

<param name="ImmediateFlush" value="false" />

 

This will avoid flusing every log statement, thus reducing the stress on CPU, but will engage more memory.

However the problem appears to me quite complex, so you will need a full CPU-Memory analisys.

(By the way, I also am not aware of any issue related to log4j file Appender like the one you have mentioned).

 

Hope it helps

Francesco

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community