Solved

To many open files

Posted on 2001-08-14
3
177 Views
Last Modified: 2010-03-04
Hallo NG,

I'm running an Apache 1.3.20 on a Slackware Linux 2.2.19. I have varios
virtual hosts in my httpd.conf and everything is going quit well.

But:

If i run "lsof -c httpd" i have over 13.000 open files on 22 Child-Processes
of the httpd Server. Every Child Process opens more then 600 Files, most of
it are Log-files where someone is opend 2 or 3 times.

Does anybody have an idear of what is going on?





0
Comment
Question by:erbg
3 Comments
 
LVL 2

Accepted Solution

by:
pheur earned 50 total points
ID: 6410854
To see the real number of open files (not memory maps and dlopen'ed modules) look for each pid in /proc/pidnumber/fd. There you only have symlinks to open files and sockets.

And error-log is generaly open as stderr (fd 2) and another file descriptor.

Anyway, at 600 open files per child reported by lsof, it looks like your server is really visited (lots of active connections at any moment) and that should be good (unless this consumes much bandwidth than you can afford).

----
Radu-Adrian Feurdean
Brainbench Linux MVP
 www.brainbench.com
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hosting application in Apache and Tomcat 1 104
CentOS 7 (Apache2) Cannot Install SSL Cert 1 61
Apache SSL and mod_rewrite not working 8 161
ignore other .htaccess 2 45
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

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