On 02/28/2010 11:57 PM, Rainer Jung wrote:
One addition: the combination of the a+c mode and fflush() shows the problem. As soon as I remove one of the two, perforemance is fine.
What 'c' flag does is to actually call _commit (FlushFileBuffers) on fflush(). Without that the fflush is called when the stream buffer is full. That makes problems if used from multiple processes since it can create complete garbage in the log.
It's unfortunate, that the OS doesn ot allow to specify a fflush interval, e.g. the file should be flushed every 500 ms. There's a flushall() call, that could be used for something like that...
AFAICT a+c does what a+ does on posix on fflush() Regards -- ^TM --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org