httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44755] New: Piped logs use two file descriptors per logfile (was 1: 1 with previous versions)
Date Fri, 04 Apr 2008 13:16:23 GMT

           Summary: Piped logs use two file descriptors per logfile (was 1:1
                    with previous versions)
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core

Created an attachment (id=21781)
 --> (
Gzipped TAR containing pfiles and truss output demonstrating bug

When pipes to logfiles are used (eg, rotatelogs), apache 2.2.8 uses two file
descriptors for each log file, as compared to one fd per file for previous
versions (ie, 2.2.6 and below). This has consequences for servers with a large
number of logfiles because the file descriptor limit (eg, 255 on Solaris) may
be suddenly breached simply by upgrading and with no other changes to the

To reproduce, set up a minimal config file with logging via pipes, eg:

TransferLog "|exec bin/rotatelogs logs/access_log 604800"
ErrorLog    "|exec bin/rotatelogs logs/error_log 604800"

Run a server as version 2.2.6 and another as version 2.2.8 and compare the
"pfiles" output for each process. You will find that the 2.2.8 process uses an
extra two file descriptors. This scales with the number of logfiles - for
example, with 10 logs, 2.2.8 uses an extra 10 FDs relative to 2.2.6.

Possibly related to recent commit:

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message