On 02/18/2013 10:49 PM, David B. wrote:
> yeah, that doesn't answer my question.  How do I restrict the 
> number of processes?

Both dbmail-2 and postgresql follow a forking model: every incoming
connection requires a process fork.

In dbmail-2 every fork will maintain it's own exclusive connection to
the database. If you're using mysql you won't notice this, since mysql
is a threaded server, but for postgresql this will quickly lead to an
linear increase in the number of processes running. Every incoming imap
connection will require a imap process and a postgres process.

The only way to limit this is by limiting the number for forks in
dbmail. For that you use the MAXCHILDREN parameter. One thing not
everyone will know is that these can be tuned for every daemon. So
whereas you will need a higher limit for IMAP, for timsieved and lmtpd
you will generally need only a couple of processes.

And of course you can use the MINSPARECHILDREN and MAXSPARECHILDREN to
allow for dynamic tuning. Keep them both very low for aggressive pruning
for pre-forked processes.


-- 
________________________________________________________________
Paul J Stevens        pjstevns @ gmail, twitter, skype, linkedin

  * Premium Hosting Services and Web Application Consultancy *

           www.nfg.nl/i...@nfg.nl/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to