You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by James Dogopoulos <jd...@dynw.com> on 2001/03/20 07:29:05 UTC
os-solaris/7435: Apache cannot open >256 log files.
>Number: 7435
>Category: os-solaris
>Synopsis: Apache cannot open >256 log files.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Mar 19 22:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: jd@dynw.com
>Release: 1.3.19
>Organization:
apache
>Environment:
Solaris 8 SunOS 5.8 Generic_108529-06 i86pc i386 i86pc
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
>Description:
# ulimit -n
4096
...
getrlimit(RLIMIT_NOFILE, 0x08045B88) = 0
getrlimit(RLIMIT_NOFILE, 0x08045B88) = 0
getrlimit(RLIMIT_NOFILE, 0x08045B88) = 0
getrlimit(RLIMIT_NOFILE, 0x08045B88) = 0
...
fcntl(3, F_DUPFD, 0x0000000F) = 254
close(3) = 0
llseek(254, 0, SEEK_END) = 0
open("/Corporate/xxxxxx.com/logs/error_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fcntl(3, F_DUPFD, 0x0000000F) = 255
close(3) = 0
llseek(255, 0, SEEK_END) = 0
open("/Corporate/xxxxx.org/logs/error_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fcntl(3, F_DUPFD, 0x0000000F) = 256
close(3) = 0
write(2, " f o p e n", 5) = 5
write(2, " : ", 2) = 2
write(2, " N o s u c h f i l e".., 25) = 25
write(2, "\n", 1) = 1
write(2, " h t t p d", 5) = 5
write(2, " : c o u l d n o t ".., 32) = 32
write(2, " / C o r p o r a t e / d".., 35) = 35
write(2, " .\n", 2) = 2
llseek(0, 0, SEEK_CUR) = 4495441
llseek(0, 0, SEEK_CUR) = 4495477
_exit(1)
>How-To-Repeat:
>Fix:
There seems to be a problem with the file descriptors (obviously).. I added..
set rlim_fd_max = 8192
set rlim_fd_cur = 4096
to /etc/system and everything.. I'm not sure what to try next.
getrlimit seems to be returning zero? so apache maybe defaults to 256? just a guess.
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]