tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carcassone France <carcassone...@yahoo.com>
Subject mod_jk leaks file handles on apache graceful restart?
Date Mon, 05 Apr 2004 23:57:41 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/mod_jk.so 
AddModule mod_jk.c 
JkWorkersFile /etc/httpd/conf/workers.properties 
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
every
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,
jk
will not work
[Wed Mar 31 22:02:39 2004] [error] (24)Too many open files: could not open mime types log
file
/httpd/conf/mime.types.

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 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message