Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 file and it does not contain any bufferSize entries.

share|improve this question

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

Open $CATALINA_BASE/conf/ and find lines with this string in them bufferSize e.g. : = 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


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.