Len Pikulski wrote on Fri, Sep 20, 2002 at 06:28:58PM -0400 :
> I have a Mandrake 8.2 (2.4.18-6) server running Postfix. I've noticed 
> through 'ps aux' that there are approx. 100 Postfix processes running, 
> but to my understanding this is normal. Recently the error log reports 
> that "Too many files open on the system". Also a gnu-pop3d error is logged 
> "Socket closed". I have increased the file handle limit from 8132 to 
> 65536, but the same errors reoccur. Someone on a mailing list told me to 
> increase the "max files per proc" limit, but I don't know where to go to 
> increase this limit. I couldn't find anything in /proc. Is there an option 
> I can add to /etc/sysctl.conf?

If you have in /etc/sysctl.conf:
   fs.file-max=65536
That is the same as:
   echo 65536 > /proc/sys/fs/file-max

The per process limits are set with the ulimit command, a bash builtin.
'help ulimit' or 'man bash' for more info.  'ulimit -a' to view current
bash instantiation settings (and probably what your programs are
inheriting too).  I suggest putting in your postfix init script a ulimit
command that sets your files up where you want them (multiply current
setting times 4 should be good).  Be careful you don't let the service
run away too far or you will find a box that has less performance than
it did before you started fixing it :)

Blue skies...                   Todd
-- 
| MandrakeSoft USA             | Security is like an onion.  It's made |
| http://www.mandrakesoft.com  | made up of several layers and makes   |
| http://www.mandrakelinux.com | you cry.              --Howard Chu    |
   Cooker Version mandrake-release-9.0-0.3mdk Kernel 2.4.19-12mdk

Attachment: msg57895/pgp00000.pgp
Description: PGP signature

Reply via email to