Bug#301546: apache-ssl reload problems
Package: apache-ssl
Version: 1.3.26.1+1.48-0woody3
There seems to be problem with reloading configuration. After each
reload, the number of open files increases, thus reaching the limit
after some time. I have tested this on 2 different servers, both with
debian woody. One small server with apache acting mainly as proxy,
apache running for more than 70 days. No reload was forced, "parent
server generation" was 59. Only one CustomLog.
Other server, small webhosting, apache-ssl with ~500 virtual domains,
each with its own CustomLog. After 15-20 reloads
(/etc/init.d/apache-ssl reload), the number of open files reached 1024
limit. (I increased it with ulimit, but there is still some limit with
FD_SETSIZE).
Let's assume 24255 is PID of one of apache-ssl children.
$ ls -l /proc/24255/fd|awk -F'>' '{print $2}'|sort|uniq -dc
2 /dev/null
20 /etc/apache-ssl
2 /var/log/apache-ssl/error.log
2 /var/log/apache-ssl/web/dobryobchod.sk.www.log
2 /var/log/apache-ssl/web/mojhosting.sk.admin.log
2 /var/log/apache-ssl/web/ske.sk.exnet.log
5 /var/log/tomcat/mod_jk.log
This tells us, that for example directory /etc/apache-ssl is opened 20
times.
On the small server, the output is similar:
2 /dev/null
63 /etc/apache-ssl/ssl
2 /var/log/apache-ssl/error.log
On the big server, these modules are loaded:
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config_ssl.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime_ssl.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth_ssl.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule apache_ssl_module /usr/lib/apache/1.3/libssl.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
PHP is 4.3.10-1.dotdeb.0 (backport from www.dotdeb.org). On small
server, PHP is version from woody. I am using self-compiled kernel
2.4.26.
Reply to: