Solved

To many open files

Posted on 2001-08-14
3
179 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
[X]
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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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