Log4j downgrading application performance
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nishu_Saim
Posted On:   Tuesday, October 19, 2004 03:33 AM

Does Log4j impacts performance of an application ? We have struts framework, J2EE architecture, with only session beans. Logging is done in Multiple log files using Rolling file appender. log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4j.appender.logfile.File=c:\bsdnet\logs\BSDApplication.log log4j.appender.logfile.MaxFileSize=5000KB log4j.appender.logfile.MaxBackupIndex=10 log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d{DATE} %p %t %c{1} - %m%n Using %c{1} impacts performance?    More>>

Does Log4j impacts performance of an application ?

We have struts framework, J2EE architecture, with only session beans.

Logging is done in Multiple log files using Rolling file appender.


log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=c:\bsdnet\logs\BSDApplication.log
log4j.appender.logfile.MaxFileSize=5000KB
log4j.appender.logfile.MaxBackupIndex=10
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{DATE} %p %t %c{1} - %m%n


Using %c{1} impacts performance?

   <<Less

Re: Log4j downgrading application performance

Posted By:   Sherbir_S  
Posted On:   Tuesday, October 19, 2004 03:56 AM



Hi Nishu,
Does Log4j impacts performance of an application ?
Yes it does. But it is better than using System.out or
System.err statements since they have a greater performance
overhead as compared to Log4J.

Using %c{1} impacts performance?
Yes it will degrade performance slightly, specially because
u r using a FileAppender. So it takes sometime to create
the file and add data to it.

Hope this helps !!

Cheers !!

Sherbir.

About | Sitemap | Contact