Solved

To many open files

Posted on 2001-08-14
3
175 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
Comment Utility
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

12 Experts available now in Live!

Get 1:1 Help Now