How to increase max file descriptor (nofile ulimit) for Apache httpd on RHEL 6

Solution Verified - Updated -

Issue

  • How to increase max file descriptor for httpd ?
  • "Too many open files" error occurs.
  • Getting errors like below:
(24)Too many open files: couldn't set child process attributes: /var/www/cgi-bin/test.cgi
(24)Too many open files: couldn't spawn child process: /var/www/cgi-bin/test.cgi

Environment

  • Red Hat Enterprise Linux 6
  • httpd
  • jbcs-httpd24

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content