Re: Programm wenn es nicht läuft jede halbe Stunde starten
Matthias Haegele schrieb:
> Andreas Gehrke schrieb:
> > Hi Michael,
> >
> > > > Der Grund ist einfach, dass mir postfix des öfteren abstürzt wegen
> > > > zu wenig kernelspeicher (Hatte das vor kurzem hier mal unter
> > > > "VServer: (über 100MB) Hauptspeicher voll" angesprochen), und das
> > > > ziemlich nervt wenn keine Mails mehr durchkommen.
> >
> > ich hatte das Problem auch ziemlich lange Zeit bis ich endlich eine
> > einigermassen zuverlässige Lösung gefunden habe: minimiere die Anzahl
> > der Instanzen aller Prozesse!
> > Postfix in der master.cf:
> > smtp inet n - - - 10 smtpd # maximal
> > 10 smtpd Instanzen.
> >
> > Nutzt du MySQL? Dann reduziere die Anzahl auch dort. Ich habe bei meinem
> > IMAP-Server (Cyrus) auch die Anzahl der Instanten reduziert. Ebenso bei
> > Apache. Aber am meisten hat das Reduzieren der Instanzen in der
> > master.cf gebracht. Seitdem steht der Server nur noch sehr selten.
>
> Hört sich vernünftig an, wenn amavis, spamassassin, clamav und Co noch
> mitbenutzt werden dort die Prozesse/childs evlt. auch auf ein Minimum
> reduzieren.
Yup.
Der amavisd.conf Parameter "$max_servers"
und der Postfix Parameter im Feld "maxproc" sollten übereinstimmen.
Aus /usr/share/doc/amavisd-new/README.postfix:
(in Debin Stable)
--- 8< ---
TUNING:
The most important tuning knob is the number of concurrent content filtering
processes allowed. Too low a value does not fully utilize the host resources,
a somewhat high value wastes memory and gains no benefit to the aggregate
mail throughput, while a too high value causes system thrashing and the
total system mail throughput starts to drop. A useful starting value is 2,
a commonly useful range is perhaps up to 10 (or perhaps 20 on hosts with
1 GB of RAM or more, and SA with network tests such as Razor enabled),
but the exact value largely depends on host capabilities and the anti-virus
and anti-spam options in use.
It is imperative that both the Postfix and the amavisd-new use the same value.
Actually the amavisd setting may be higher that the Postfix, but this serves
no useful purpose and just wastes resources. The amavisd.conf parameter is
the $max_servers, the Postfix parameter is the maxproc field in the
'smtp-amavis' entry (file master.cf).
Instead of adjusting the maxproc field of the 'smtp-amavis' service,
one may prefer to leave it a the default '-', and use a main.cf option
for the same purpose:
smtp-amavis_destination_concurrency_limit = 2
--- 8< ---
Ciao Marco!
--
Backups are for wimps. Real men upload their data to an FTP site
and have everyone else mirror it.
-- Linus B. Torvalds
It's Time to Talk About Free Software Again
-- Bruce Perens, in debian-devel@lists.debian.org
Reply to: