Solved

Apache limited by 1024 file open

Posted on 2003-10-30
5
707 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
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
 
LVL 2

Expert Comment

by:sam_sunder
ID: 9770414
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

822 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