From Newsgroup: alt.bbs.synchronet
I'm running into an issue where my system will lock up due to too many open files. It's been happening for a couple months. I upped the open file limit, but that didn't seem to help.
[root@bbs ctrl]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15605
max locked memory (kbytes, -l) 8192
max memory size (kbytes, -m) unlimited
open files (-n) 950000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 950000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
I'm still getting lots of this, and it will refuse to let anyone log in.
May 28 13:45:33 bbs sbbs: evnt BBS Events DAILY: Purging deleted/expired e-mail May 28 13:45:33 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4671 (daily_maint) opening "/sbbs/data/mail" access=4294967096 info=smb_open_fp 24 'Too many open files' opening /sbbs/data/mail.shd
May 28 13:45:33 bbs sbbs: evnt BBS Events DAILY: Running system event
May 28 13:45:33 bbs sbbs: evnt BBS Events !JavaScript : can't open /sbbs/exec/logonlist.js: No such file or directory
May 28 13:45:33 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in exec.cpp line 662 (js_execfile) compiling "/sbbs/exec/logonlist.js" access=0
May 28 13:45:33 bbs sbbs: evnt BBS Events Daily event: '?logonlist -m' returned -1
May 28 13:45:33 bbs sbbs: evnt BBS Events DAILY: System maintenance ended
May 28 13:45:37 bbs sbbs: evnt BBS Events New Day - Prev: Wed Dec 31 1969 06:00 pm
May 28 13:45:37 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in logon.cpp line 603 (logonstats) opening "/sbbs/data/logon.lst" access=577
May 28 13:45:37 bbs sbbs: evnt BBS Events DAILY: System maintenance begun
May 28 13:45:37 bbs sbbs: evnt BBS Events DAILY: Backing-up user data...
May 28 13:45:37 bbs sbbs: evnt BBS Events DAILY: Backing-up mail data...
May 28 13:45:37 bbs sbbs: evnt BBS Events ERROR -200 (smb_open_fp 24 'Too many open files' opening /sbbs/data/mail.shd) opening mail base
May 28 13:45:37 bbs sbbs: evnt BBS Events DAILY: Checking for inactive/expired user records...
May 28 13:45:37 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 1" access=4294967295
May 28 13:45:37 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 2" access=4294967295
May 28 13:45:37 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 3" access=4294967295
<continues for every user>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
and then it tries to re-run the daily event.. because it thinks it's Epoch:
May 28 13:37:57 bbs sbbs: evnt BBS Events New Day - Prev: Wed Dec 31 1969 06:00 pm
May 28 13:37:57 bbs sbbs: evnt BBS Events DAILY: System maintenance begun
May 28 13:37:57 bbs sbbs: evnt BBS Events DAILY: Backing-up user data...
May 28 13:37:57 bbs sbbs: evnt BBS Events DAILY: Backing-up mail data...
May 28 13:37:57 bbs sbbs: evnt BBS Events DAILY: Checking for inactive/expired user records...
May 28 13:37:57 bbs sbbs: evnt BBS Events DAILY: Purging deleted/expired e-mail May 28 13:37:58 bbs sbbs: evnt BBS Events DAILY: Running system event
May 28 13:37:58 bbs sbbs: evnt BBS Events DAILY: System maintenance ended
May 28 13:38:03 bbs sbbs: evnt BBS Events New Day - Prev: Wed Dec 31 1969 06:00 pm
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: System maintenance begun
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: Backing-up user data...
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: Backing-up mail data...
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: Checking for inactive/expired user records...
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: Purging deleted/expired e-mail May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: Running system event
May 28 13:38:03 bbs sbbs: evnt BBS Events DAILY: System maintenance ended
May 28 13:38:07 bbs sbbs: evnt BBS Events New Day - Prev: Wed Dec 31 1969 06:00 pm
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: System maintenance begun
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: Backing-up user data...
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: Backing-up mail data...
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: Checking for inactive/expired user records...
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: Purging deleted/expired e-mail May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: Running system event
May 28 13:38:07 bbs sbbs: evnt BBS Events DAILY: System maintenance ended
May 28 13:38:12 bbs sbbs: evnt BBS Events New Day - Prev: Wed Dec 31 1969 06:00 pm
May 28 13:38:12 bbs journal: Suppressed 4062 messages from /system.slice/sbbs.service
May 28 13:38:12 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in logon.cpp line 603 (logonstats) opening "/sbbs/data/logon.lst" access=577
May 28 13:38:12 bbs sbbs: evnt BBS Events DAILY: System maintenance begun
May 28 13:38:12 bbs sbbs: evnt BBS Events DAILY: Backing-up user data...
May 28 13:38:12 bbs sbbs: evnt BBS Events DAILY: Backing-up mail data...
May 28 13:38:12 bbs sbbs: evnt BBS Events ERROR -200 (smb_open_fp 24 'Too many open files' opening /sbbs/data/mail.shd) opening mail base
May 28 13:38:12 bbs sbbs: evnt BBS Events DAILY: Checking for inactive/expired user records...
May 28 13:38:12 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 1" access=4294967295
May 28 13:38:12 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 2" access=4294967295
May 28 13:38:12 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 3" access=4294967295
May 28 13:38:12 bbs sbbs: evnt BBS Events !ERROR 24 (Too many open files) in main.cpp line 4580 (daily_maint) reading "user record 4" access=4294967295
-=-=-=-=-==-=-=-=-=-=-=-
Now, when I checked, lsof | wc -l only showed about 72K open files. the majority were by sbbs/term, and sbbs/http to /sbbs/data/user/user.dat
after killing sbbs and restarting, my open files were down to 12k.
The kicker is, 72k is far less than the 950K my system allows. is there an open file limit built into SBBS?
DaiTengu
... I'd give my right arm to be ambidextrous.
---
þ Synchronet þ War Ensemble BBS - The sport is war, total war - warensemble.com
--- Synchronet 3.19c-Linux NewsLink 1.113
* Vertrauen - Riverside County, California -
telnet://vert.synchro.net
--- Synchronet 3.19c-Linux NewsLink 1.113