Received: (qmail 52209 invoked by uid 501); 20 Mar 2001 06:29:05 -0000 Message-Id: <20010320062905.52208.qmail@apache.org> Date: 20 Mar 2001 06:29:05 -0000 From: James Dogopoulos Reply-To: jd@dynw.com To: submit@bugz.apache.org Subject: Apache cannot open >256 log files. X-Send-Pr-Version: 3.110 >Number: 7435 >Category: os-solaris >Synopsis: Apache cannot open >256 log files. >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Mar 19 22:30:00 PST 2001 >Closed-Date: Tue Mar 20 21:17:50 PST 2001 >Last-Modified: Tue Mar 20 21:17:50 PST 2001 >Originator: jd@dynw.com >Release: 1.3.19 >Organization: >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: From: "James D." To: , Cc: Subject: Re: os-solaris/7435: Apache cannot open >256 log files. Date: Tue, 20 Mar 2001 12:55:40 -0500 Apparently stdio doesn't allow >256 on Solaris (Unless running 64-bit). So my options are to log to one large file and then parse them? Or maybe write something to tail the files and send them to the appropriate user. Anyone have other ideas? Oh well. -jd From: "James D." To: , Cc: Subject: Re: os-solaris/7435: Apache cannot open >256 log files. Date: Tue, 20 Mar 2001 12:55:40 -0500 Apparently stdio doesn't allow >256 on Solaris (Unless running 64-bit). So my options are to log to one large file and then parse them? Or maybe write something to tail the files and send them to the appropriate user. Anyone have other ideas? Oh well. -jd State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Tue Mar 20 21:17:49 PST 2001 State-Changed-Why: Yep, Solaris does have a file-descriptor limitation. I'm not sure if there is any way around it other than what you suggest, but you may want to inquire in a Solaris newsgroup. Thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]