IIS Home @ it-notebook.org

Log file data is buffered

(Kristofer Gafvert, March 17, 2005)

The IIS 6.0 logs are handled by HTTP.sys. For performance and scalability reasons, HTTP.sys buffers the logging for a while before it writes to disk. By default, the buffer time is one (1) minute, and the buffer size is 64 K. When debugging, and this depends on the log files, it could however be great to not buffer. There is no supported way to do this, but an unsupported way is to create the registry value DisableLogBuffering and set it to 1.

Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\DisableLogBuffering
Data Type: REG_DWORD
Range: 0 - 1
Note: The key does not exist by default. The value 1 means that log buffering is disabled. 0 means that it is enabled.

After you have created this value, and/or changed its data, you need to restart the machine.

You should NOT do this on a production server, it will cause problems.

The registry value LogBufferSize overrides the default logging buffer of 64 K. This can be done to reduce memory consumption (but will increase CPU and hard disk use).

Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Http\Parameters\LogBufferSize
Data Type: REG_DWORD
Range: 12,288 - 65,536

Applies to [?]

IIS 6.0


New in Logging (HTTP.sys and logging)
Global Registry Entries