Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Apache limited by 1024 file open

Posted on 2003-10-30
5
Medium Priority
?
750 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 100 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 100 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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.:
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.
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

926 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