Solved

To many open files

Posted on 2001-08-14
3
176 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat LDAP authentication issue 3 148
whm high memory usage in processes 7 70
LINUX CENTOS + APACHE 9 63
Why Xampp showing MySQL as Maria DB on Welcome Page ? 8 46
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

15 Experts available now in Live!

Get 1:1 Help Now