From owner-freebsd-questions Tue Nov 24 11:50:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29134 for freebsd-questions-outgoing; Tue, 24 Nov 1998 11:50:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from phoenix (phoenix.aye.net [206.185.8.134]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA29126 for ; Tue, 24 Nov 1998 11:50:30 -0800 (PST) (envelope-from ericp@aye.net) From: ericp@aye.net Received: (qmail 27398 invoked from network); 24 Nov 1998 19:48:43 -0000 Received: from draco.aye.net (HELO draco) (206.185.8.234) by phoenix.aye.net with SMTP; 24 Nov 1998 19:48:43 -0000 Reply-To: To: Subject: Too many open files: unable to open a file descriptor Date: Tue, 24 Nov 1998 14:56:16 -0500 MIME-Version: 1.0 Message-ID: <004c01be17e4$80284e20$ea08b9ce@draco.aye.net> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA-1; boundary="----=_NextPart_000_004B_01BE17BA.94734210" Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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

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 =93Too many open files: unable to open a file = descriptor=94 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.

During the start of apache I ran vmstat = =96m 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 =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.

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.

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
=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
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
=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

------=_NextPart_000_0044_01BE17BA.93DEF150-- ------=_NextPart_000_004B_01BE17BA.94734210 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFyzCCAnsw ggHkoAMCAQICAjejMA0GCSqGSIb3DQEBBAUAMIHIMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2Vz dGVybiBDYXBlMRQwEgYDVQQHEwtEdXJiYW52aWxsZTEaMBgGA1UEChMRVGhhd3RlIENvbnN1bHRp bmcxMzAxBgNVBAsTKkNlcnRpZmljYXRlIFNlcnZpY2VzIFJTQSBJSyAxOTk4LjIuMjUgODozNTE7 MDkGA1UEAxMyVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIFJTQSBJc3N1aW5nIEtleSAxOTk4LjIu MjUwHhcNOTgwOTA4MjMwNzI2WhcNOTkwOTA4MjMwNzI2WjA/MR8wHQYDVQQDExZUaGF3dGUgRnJl ZW1haWwgTWVtYmVyMRwwGgYJKoZIhvcNAQkBFg1lcmljcEBheWUubmV0MFswDQYJKoZIhvcNAQEB BQADSgAwRwJAff/ri4C2xzlsdSaqJtiH4lZgihIbNgh/tAYQc+lqn0DnohM3uEbYTeDQRlYAmdWd gpLtp6yj7d+3wAuF3J2BNQIDAQABo0EwPzAOBgNVHQ8BAf8EBAMCBaAwDAYDVR0TAQH/BAIwADAf BgNVHSMEGDAWgBTtNBduDiteS4eYkbg3p5i/kh+scjANBgkqhkiG9w0BAQQFAAOBgQAafOajxOP7 ViGCihTJuNobD3kvRuRGFTTihNGLaDH3FhsxuUBHFo+YbDoe4POCqdgs4e4E7M/8pLT71WZbsV3S beyImpDyWyHSOjZ8Laqhqx1VWsU2pT9zu7XfLzIi+QaLCbN6/dapY9cLq9B85Xk7PA9NlDr9n4F2 EAcXZp6xLT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extPart_000_004B_01BE17BA.94734210-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message