Issue Details (XML | Word | Printable)

Key: LOGCXX-58
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: Curt Arnold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

ImmediateFlush'd FileAppenders extremely slow on Windows

Created: 10/Feb/05 05:30 PM   Updated: 10/Feb/05 05:42 PM
Return to search
Component/s: Appender
Affects Version/s: None
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Resolution Date: 10/Feb/05 05:42 PM


 Description  « Hide
Early APR-based versions of FileAppender (1.13-1.19) called apr_file_flush() after each log request if immediateFlush was set to true. On Unix platforms, the call is a no-op on unbuffered files, however on Windows it is a call to FileFlushBuffers which can be extraordinarily expensive. So much so that the affected benchmarks were 100x slower on Windows than Linux.

I logged the issue as an APR bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=33485) and have removed the call to apr_file_flush in the FileAppender. This in effectively causes the immediateFlush attribute to be ignored.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.