https://issues.apache.org/bugzilla/show_bug.cgi?id=44755
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
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=21781)
--> (https://issues.apache.org/bugzilla/attachment.cgi?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
config.
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:
http://svn.apache.org/viewvc/httpd/httpd/tags/2.2.8/server/log.c?view=diff&r1=602466&r2=602467
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]