Solved

Apache limited by 1024 file open

Posted on 2003-10-30
5
684 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
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now