I have some OOM problems with pmg-smtp-filter
too many childs are started here, so that even 32 GB of RAM together with the clamd exceed the memory.
I have changed in the /etc/systemd/system/pmg-smtp-filter.service.d/extend.conf
[Service]
OOMScoreAdjust=-1000
Tried to prevent the OOM from hitting and killing but this only leads to the server dying.
We then did the following:
diff /usr/bin/pmg-smtp-filter /usr/bin/pmg-smtp-filter.org
87,88c87,88
< my $min_spare_servers = 1;
< my $max_spare_servers = 5;
---
> my $min_spare_servers = 0;
> my $max_spare_servers = 0;
However, I would prefer not to do this hard coded but via a config unfortunately I can't find out where this would work, can anyone help me?
BR Michael
too many childs are started here, so that even 32 GB of RAM together with the clamd exceed the memory.
I have changed in the /etc/systemd/system/pmg-smtp-filter.service.d/extend.conf
[Service]
OOMScoreAdjust=-1000
Tried to prevent the OOM from hitting and killing but this only leads to the server dying.
We then did the following:
diff /usr/bin/pmg-smtp-filter /usr/bin/pmg-smtp-filter.org
87,88c87,88
< my $min_spare_servers = 1;
< my $max_spare_servers = 5;
---
> my $min_spare_servers = 0;
> my $max_spare_servers = 0;
However, I would prefer not to do this hard coded but via a config unfortunately I can't find out where this would work, can anyone help me?
BR Michael