Seem to be running out of file descriptors


Subject: Seem to be running out of file descriptors
From: Russell Gnann (rgnann at corp dot pol dot net)
Date: Fri Apr 18 2003 - 14:43:52 EDT


We attempted to upgrade Cyrus and Sasl from 2.0.16/1.5.27 to the latested
releases. we ran into a problem when the system came under load and we saw
log messages from saslauthd stating it couldn't open the pam library or
could load parts of the module we use. Through our investigation we noticed
that the maximum number of file descriptors was being reached. We are
running under Solaris 7 at the moment and by default the maximum number of
open files is 64.

This is grep of EMFILE from our QA trusses of saslauthd at the time when
authentication fails and error messages start showing up in the logs.

sasl_15897:15897:
open("/sybase/1192/locales/us_english/iso_1/common.loc", O_RDONLY) Err#24
EMFILE
sasl_15897:15897: open("/tmp/imapd.log", O_RDWR|O_APPEND|O_CREAT,
0666) Err#24 EMFILE
sasl_15898:15898:
open("/sybase/1192/locales/us_english/iso_1/common.loc", O_RDONLY) Err#24
EMFILE
sasl_15898:15898: open("/tmp/imapd.log", O_RDWR|O_APPEND|O_CREAT,
0666) Err#24 EMFILE
sasl_15898:15898: open("/dev/zero", O_RDONLY)
Err#24 EMFILE
sasl_15898:15898: open("/dev/zero", O_RDONLY)
Err#24 EMFILE
sasl_15899:15899:
open("/sybase/1192/locales/us_english/iso_1/common.loc", O_RDONLY) Err#24
EMFILE
sasl_15899:15899: open("/tmp/imapd.log", O_RDWR|O_APPEND|O_CREAT,
0666) Err#24 EMFILE
sasl_15900:15900:
open("/sybase/1192/locales/us_english/iso_1/common.loc", O_RDONLY) Err#24
EMFILE
sasl_15900:15900: open("/tmp/imapd.log", O_RDWR|O_APPEND|O_CREAT,
0666) Err#24 EMFILE
sasl_15901:15901:
open("/sybase/1192/locales/us_english/iso_1/common.loc", O_RDONLY) Err#24
EMFILE
sasl_15901:15901: open("/tmp/imapd.log", O_RDWR|O_APPEND|O_CREAT,
0666) Err#24 EMFILE

An option to get around this problem would be to use ulimit to greatly
increase the maximum number of open files, and then schedule a job to
periodically restart saslauthd. This is not the solution we want to use. I
am hoping to find a patch or fix for the sasl souce code to correctly close
the files. If anyone has one they have created they can share that would be
awsome. Thanks for any help.
_______
Russell Gnann
UNIX Systems Administrator
Andrx Corp.







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD