Apache error Too many open files

Discussions

EJB programming & troubleshooting: Apache error Too many open files

  1. Apache error Too many open files (1 messages)

    We have a site which is running on Apache Webserver, Weblogic App server. We
    have two instances of Apache runing on two separte boxes with load balancer. We
    have a user base of around 2000+ users. We start Apache using the
    command "apachectl startssl".

    The problem we are facing is after few hours CSS and Images stop
    appearing on the site and JSP pages get distorted since CSS doesn't get loaded.
    When we check the log files at that moment we find lot of error messages
    saying "(24)Too many open files: file permissions deny server access: <actual
    file name>". Only when we restart Apache this problem gets resolved and CSS and
    Images start appearing on the site. So currently we have to restart Apache very
    frequently.

    We tried one option wherein we specified "ulimit -n 8192" inside "apachectl"
    file and restarted Apache. But still the problem exists.

    Please help us in resolving this issue.

    Some standard entries in our httpd.conf file is given below:

    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5
    MaxClients 250
    MaxRequestsPerChild 10000

    This issue may alos due to too many coonections between weblogic and apache.

    let me know if anyone has encountered this problem.

    Thanks in advance
    Rajendra
  2. Facing the same problem with Apache 2.0.46[ Go to top ]

    Any ideas on how to solve this problem?
    We are using Apache 2.0.46 with Resin 2.1.13.