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
Solved

Apache limited by 1024 file open

Posted on 2003-10-30
5
711 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to install java on RHEL image on EC2 4 39
awk sed 8 63
awk file 6 77
winscp where are logs stored 3 51
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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

840 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