Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I recently moved a tomcat app from tomcat 5 on windows server 2003 to tomcat 6 under windows server 2008. Now there is a delay writing to the log files. This is for both stdout and acceess logs. For example you can go to some page then open the access log but there wont be any record of that access for a few minutes. This is a pain because if there is a problem reported we don't want to have to wait until the log files are written out. I guess tomcat or windows server must be buffering the logs. Is there some way to disable this.

We have not modified the logging.properties file and it does not contain any bufferSize entries.

share|improve this question

1 Answer 1

Buffering isn't enabled in tomcat by default, but it may be on your system.

Open $CATALINA_BASE/conf/logging.properties and find lines with this string in them bufferSize e.g. : 4admin.org.apache.juli.FileHandler.bufferSize = 16384 comment the line out or delete it, and your delayed write should go away.

share|improve this answer
    
Thanks for the response - I'll double check this in the morning but I am fairly sure there is no buffer explicitly set. –  Adam Butler Aug 30 '10 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.