Solved

Apache limited by 1024 file open

Posted on 2003-10-30
5
733 Views
Last Modified: 2013-12-15
Apache seems to be limited by 1024 file discriptors open at a single time. I attempted to raise the apache user ulimit to 2048, but apache still seems to be limited to 1024. Any ideas?
0
Comment
Question by:bluedevilent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 25 total points
ID: 9655196
Linux
By default Linux has a kernel maximum of 256 open descriptors per process. There are several patches available for the 2.0.x series which raise this to 1024 and beyond, and you can find them in the "unofficial patches" section of the Linux Information HQ. None of these patches are perfect, and an entirely different approach is likely to be taken during the 2.1.x development. Applying these patches will raise the FD_SETSIZE used to compile all programs, and unless you rebuild all your libraries you should avoid running any other program with a soft descriptor limit above 256. As of this writing the patches available for increasing the number of descriptors do not take this into account. On a dedicated webserver you probably won't run into trouble.

I got the above info from apache site have a check here http://httpd.apache.org/docs/misc/descriptors.html

Hope this info can help
0
 
LVL 2

Assisted Solution

by:j79
j79 earned 25 total points
ID: 9753857
Raise the FD's like described at this sites:
http://www.minq.se/products/pureload/tuning.html
http://docs.sun.com/source/816-7159-10/pt_chap6.html#58027
http://www.volano.com/linux.html

Then use with root the command "ulimit -n ...." and start apache.
Or add the "ulimit -n..." into your .bashrc of root in order to have the descriptors you want on every login.
If apache is still running with 1024, then recompile it again with the new FD settings.

j79
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question