I've noticed lately that the file based appenders (e.g. RollingFileAppender) sometime incur a significantly large delay (compared to the console appender) when writing log statements to a file. I'm currently experiencing delays of 20-40 seconds, although my process is nearly idle and not doing any other IO.
I'm using more or less default settings for the appender: <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="/tmp/log/test.log"/> <param name="MaxFileSize" value="150KB"/> <param name="MaxBackupIndex" value="2"/> <layout class="org.apache.log4j.xml.XMLLayout"> <param name="locationInfo" value="true"/> </layout> </appender> It offen happens that the output stops in den middle of an XML element which makes the file useless for parsing (in that state). As far as I understand the appenders do the IO in their own threads. I'd like to get a little bit more background information in order to nail down the problem. I've especially encountered the delay after introducing another thread in my application. Olaf --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]