httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carcassone France <>
Subject [users@httpd] mod_jk leaks file handles on apache graceful restart?
Date Tue, 06 Apr 2004 00:11:49 GMT
Running:  Apache 1.3.28 and Tomcat 4.1.24 on Solaris 5.8

mod_jk related lines in httpd.conf:

LoadModule jk_module libexec/ 
AddModule mod_jk.c 
JkWorkersFile /etc/httpd/conf/ 
JkLogFile /var/log/httpd/mod_jk.log 
JkLogLevel info 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

Very standard stuff.  Initially when httpd starts up, lsof reports 2 fd's for mod_jk.log for
instance of httpd.  Then everytime on subsequent apachectl graceful restart, lsof reports
1 extra
fd for mod_jk.log for each httpd instance.  So it's possible to eventually crash httpd with
a loop
of apachctl graceful restart.  When httpd finally crashed, error_log reports:

[Wed Mar 31 22:01:35 2004] [notice] SIGUSR1 received.  Doing graceful restart
[Wed Mar 31 22:01:37 2004] [notice] Web Server configured -- resuming normal operations
[Wed Mar 31 22:01:37 2004] [notice] Accept mutex: fcntl (Default: fcntl)
[Wed Mar 31 22:02:37 2004] [notice] SIGUSR1 received.  Doing graceful restart
[Wed Mar 31 22:02:39 2004] [error] (24)Too many open files: Error while opening the workers,
will not work
[Wed Mar 31 22:02:39 2004] [error] (24)Too many open files: could not open mime types log

Is there any way to stop mod_jk to chew up file handles?  This is necessary for log rotation...

Thanks in advance for your help.

Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message