This sounds like a very newbie-ish question, so I apologize in advance.
I am running qmail-scanner / qmail / et al on a very large box (Dual Xeon 2.4ghz, 2gb RAM) which should be able to handle many, many connections. I am running FreeBSD 5.1.
I am hitting a limit that I can't detect: tcpserver/qmail-scanner start starts saying they can't fork. Using truss to attach to one of the processes, I see that qmail-scanner is sitting there doing vfork/nanosleep over and over and over, always getting "Resource temporarily unavailable". Once the processes get into this state, they don't ever get out of it, and it seems to build up over time (??) - i.e. more and more forking errors until everything is hosed.
At the moment I'm not even using softlimit in the qmail startup script in order to eliminate it as a cause. tcpserver is set to allow 60 concurrent qmail processes; the problems start to occur at about 35-40 processes. At the moment there are no set limits on resource consumption for tcpserver or its children - at least not ones that I am setting!
I've checked kern.maxproc, kern.maxfiles, kern.maxfilesperproc, kern.maxprocperuid, etc. I've also looked at kern.somaxconn, etc, mostly just shooting in the dark. All of these are at sane limits and I am nowhere near the limits on open files or number of processes. I've also checked the kernel max datasize (kern.maxdsize), etc etc.
Is there something I am missing? Could spamd be causing the problem?
Right now there are no limits that I can detect, so limits -U qmaild returns (at the moment):
Resource limits for class default: cputime infinity secs filesize infinity kb datasize infinity kb stacksize infinity kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses infinity openfiles infinity sbsize infinity bytes vmemoryuse infinity kb
Kernel defined limits:
cputime infinity secs filesize infinity kb datasize 1572864 kb stacksize 262144 kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kb
(Note, I don't intend to leave these values so high)
Currently, I am using KAV and spamc/spamd.
Apologies if this is a dumb question, and _many thanks_ for any clues or debugging hints you may be able to provide. Linkage to Fine Manuals will be appreciated.
-j
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
