[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

To many open files

Posted on 2001-08-14
3
Medium Priority
?
184 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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

649 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