Date: Tue, 24 Nov 1998 14:56:16 -0500 From: ericp@aye.net To: <freebsd-questions@FreeBSD.ORG> Subject: Too many open files: unable to open a file descriptor Message-ID: <004c01be17e4$80284e20$ea08b9ce@draco.aye.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
------=_NextPart_000_004B_01BE17BA.94734210
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0044_01BE17BA.93DEF150"
------=_NextPart_000_0044_01BE17BA.93DEF150
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Please HELP.
I have been struggling for a couple of days to get an Apache web server up
and running. The server has 256MB of RAM running 3.0 RELEASE. I
continually get the message "Too many open files: unable to open a file
descriptor" I understand what the error means and I have changed maxfiles
and maxfilesperproc up and down and all around. It would seem that I am
unable to affect any change upon the files setting. I also know the number
of files that apache is trying to open and tried several times setting
both kernel parameters well above the number of files needed. It seems to
die after opening around 2700 files--no matter what I have maxfiles set
to.
During the start of apache I ran vmstat -m in the background every 5
seconds and here is what I saw:
.
file 48 3K 4K 40960K 4994 0 0 64
file desc 38 20K 20K 40960K 302 0 0
128,256,512,1K,2K
.
file 48 3K 4K 40960K 5468 0 0 64
file desc 38 20K 20K 40960K 306 0 0
128,256,512,1K,2K
.
file 48 3K 4K 40960K 5960 0 0 64
file desc 38 20K 20K 40960K 310 0 0
128,256,512,1K,2K
.
file 49 4K 4K 40960K 6436 0 0 64
file desc 38 20K 20K 40960K 314 0 0
128,256,512,1K,2K
.
file 49 4K 4K 40960K 6920 0 0 64
file desc 38 20K 20K 40960K 318 0 0
128,256,512,1K,2K
.
file 48 3K 4K 40960K 7498 0 0 64
file desc 38 20K 20K 40960K 322 0 0
128,256,512,1K,2K
.
file 145 10K 10K 40960K 8084 0 0 64
file desc 39 21K 22K 40960K 329 0 0
128,256,512,1K,2K
.
file 963 61K 61K 40960K 8920 0 0 64
file desc 39 28K 32K 40960K 336 0 0
128,256,512,1K,2K,4K,8K
.
file 1327 83K 83K 40960K 9294 0 0 64
file desc 39 28K 32K 40960K 340 0 0
128,256,512,1K,2K,4K,8K
.
file 1687 106K 106K 40960K 9672 0 0 64
file desc 39 36K 44K 40960K 345 0 0
128,256,512,1K,2K,4K,8K,16K
.
file 2041 128K 128K 40960K 10036 0 0 64
file desc 39 36K 44K 40960K 349 0 0
128,256,512,1K,2K,4K,8K,16K
.
file 2383 149K 149K 40960K 10392 0 0 64
file desc 39 36K 44K 40960K 353 0 0
128,256,512,1K,2K,4K,8K,16K
.
file 2725 171K 171K 40960K 10748 0 0 64
file desc 39 36K 44K 40960K 357 0 0
128,256,512,1K,2K,4K,8K,16K
.****AT THIS POINT IT DIES WITH THE ERROR****************
file 46 3K 176K 40960K 10848 0 0 64
file desc 35 18K 44K 40960K 361 0 0
128,256,512,1K,2K,4K,8K,16K
I watched several other indicators as well but the key does seem to be
with "files" not file descriptors. RAM usage never goes above 60MB. All
other parts of the system seem to be OK. It's just the files setting that
goes all "bizarro world" on me.
Ulimit returns "unlimited" and I have tried launching it from a different
shell as well-just in case it was some hidden limit of the shell.
Everything in login.conf is set at unlimited.
Does anyone have any idea where I should look next or what the answer
might be?
Eric Paul
===========================
Aye Net
424 Wall Street
Jeffersonville, IN 47130
Phone: (812) 280-4000
Phone: (502) 568-2020
Phone: (812) 952-1311
FAX: (812) 280-4001
TOLL FREE: 1-877-AYENET1
Web site: http://www.aye.net
===========================
------=_NextPart_000_0044_01BE17BA.93DEF150
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2163.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Please HELP.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I have been struggling for a couple of =
days to get an Apache web server up and running. The server has 256MB of =
RAM running 3.0 RELEASE. I continually get the message =93</FONT><FONT =
SIZE=3D2 FACE=3D"Courier New">Too many open files: unable to open a file =
descriptor</FONT><FONT SIZE=3D2 FACE=3D"Courier New">=94</FONT> <FONT =
SIZE=3D2 FACE=3D"Arial">I understand what the error means and I have =
changed maxfiles and maxfilesperproc up and down and all around. It =
would seem that I am unable to affect any change upon the files setting. =
I also know the number of files that apache is trying to open and tried =
several times setting both kernel parameters well above the number of =
files needed. It seems to die after opening around 2700 files-=97no =
matter what I have maxfiles set to.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">During the start of apache I ran vmstat =
=96m in the background every 5 seconds and here is what I saw:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 48 =
3K 4K 40960K =
4994 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 302 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 48 =
3K 4K 40960K =
5468 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 306 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 48 =
3K 4K 40960K =
5960 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 310 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 49 =
4K 4K 40960K =
6436 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 314 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> </FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 49 =
4K 4K 40960K =
6920 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 318 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 48 =
3K 4K 40960K =
7498 0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 38 20K =
20K 40960K 322 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 145 10K 10K =
40960K 8084 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 21K =
22K 40960K 329 =
0 0 128,256,512,1K,2K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> </FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 963 61K 61K =
40960K 8920 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 28K =
32K 40960K 336 =
0 0 128,256,512,1K,2K,4K,8K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 1327 83K 83K =
40960K 9294 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 28K =
32K 40960K 340 =
0 0 128,256,512,1K,2K,4K,8K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 1687 106K 106K =
40960K 9672 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 36K =
44K 40960K 345 =
0 0 128,256,512,1K,2K,4K,8K,16K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 2041 128K 128K =
40960K 10036 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 36K =
44K 40960K 349 =
0 0 128,256,512,1K,2K,4K,8K,16K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 2383 149K 149K =
40960K 10392 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 36K =
44K 40960K 353 =
0 0 128,256,512,1K,2K,4K,8K,16K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 2725 171K 171K =
40960K 10748 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 39 36K =
44K 40960K 357 =
0 0 128,256,512,1K,2K,4K,8K,16K</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.****AT THIS POINT IT DIES WITH THE =
ERROR****************</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
file 46 3K =
176K 40960K 10848 =
0 0 64</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> file =
desc 35 18K =
44K 40960K 361 =
0 0 128,256,512,1K,2K,4K,8K,16K</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I watched several other indicators as =
well but the key does seem to be with =93files=94 not file descriptors. =
RAM usage never goes above 60MB. All other parts of the system seem to =
be OK. It=92s just the files setting that goes all =93bizarro world=94 =
on me.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Ulimit returns =93unlimited=94 and I =
have tried launching it from a different shell as well=97just in case it =
was some hidden limit of the shell.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Everything in login.conf is set at =
unlimited.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Does anyone have any idea where I =
should look next or what the answer might be?</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">Eric Paul</FONT>
<BR><FONT SIZE=3D1 =
FACE=3D"Arial">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Aye Net</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">424 Wall Street</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Jeffersonville, IN 47130</FONT>
</P>
<P><FONT SIZE=3D1 FACE=3D"Arial">Phone: (812) 280-4000</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Phone: (502) =
568-2020</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Phone: (812) =
952-1311</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">FAX: (812) =
280-4001</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">TOLL FREE: 1-877-AYENET1</FONT>
<BR><FONT SIZE=3D1 FACE=3D"Arial">Web site:</FONT> <A =
HREF=3D"http://www.aye.net"></A><U><FONT COLOR=3D"#0000FF" SIZE=3D1 =
FACE=3D"Arial"><A HREF=3D"http://www.aye.net" =
TARGET=3D"_blank">http://www.aye.net</A></FONT></U>
<BR><FONT SIZE=3D1 =
FACE=3D"Arial">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D</FONT>
</P>
</BODY>
</HTML>
------=_NextPart_000_0044_01BE17BA.93DEF150--
------=_NextPart_000_004B_01BE17BA.94734210
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Dispos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CWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIGA1UE
BxMLRHVyYmFudmlsbGUxGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5nMTMwMQYDVQQLEypDZXJ0
aWZpY2F0ZSBTZXJ2aWNlcyBSU0EgSUsgMTk5OC4yLjI1IDg6MzUxOzA5BgNVBAMTMlRoYXd0ZSBQ
ZXJzb25hbCBGcmVlbWFpbCBSU0EgSXNzdWluZyBLZXkgMTk5OC4yLjI1AgI3ozAJBgUrDgMCGgUA
oIIBmjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw05ODExMjQxOTU2
MTNaMCMGCSqGSIb3DQEJBDEWBBQb6rTUSymMvW3iE8UkT7nzSkB/vjBYBgkqhkiG9w0BCQ8xSzBJ
MAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDAHBgUr
DgMCGjAKBggqhkiG9w0CBTCB4AYJKwYBBAGCNxAEMYHSMIHPMIHIMQswCQYDVQQGEwJaQTEVMBMG
A1UECBMMV2VzdGVybiBDYXBlMRQwEgYDVQQHEwtEdXJiYW52aWxsZTEaMBgGA1UEChMRVGhhd3Rl
IENvbnN1bHRpbmcxMzAxBgNVBAsTKkNlcnRpZmljYXRlIFNlcnZpY2VzIFJTQSBJSyAxOTk4LjIu
MjUgODozNTE7MDkGA1UEAxMyVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIFJTQSBJc3N1aW5nIEtl
eSAxOTk4LjIuMjUCAjejMA0GCSqGSIb3DQEBAQUABEBcn8TDnKLg2bCKsts2hw3ayB8jG2tCTH/K
iXELqFZwAXihybYjLAEdA8SkmMoB604vya6KzQBpvbCptrLZRdiJAAAAAAAA
------=_NextPart_000_004B_01BE17BA.94734210--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004c01be17e4$80284e20$ea08b9ce>
