Skip to content

Too Many sa-learn Processes Make MiaB Server Unresponsive and Can Crash Mail Processes #2531

@MSSEsq

Description

@MSSEsq

When a mail account hosted by a MiaB server has received many junk mail messages and a mail client application processes a large number of those messages in a relatively short period of time, the MiaB server launches many sa-learn processes as the mail user. This often causes all available memory, both real and virtual, to be used, which leaves the server unresponsive with almost no CPU capacity available for user processes. This can even cause processes that process mail to crash. The only way to recover and restore functionality is to restart the system. If there are still many junk mail messages that SpamAssassin must process after a system restart, then many sa-learn processes are launched again and the problem recurs.

I researched SpamAssassin configuration options and did not find a way to limit the number of sa-learn processes that are launched. If there is a way to make MiaB check available free memory and CPU utilization before additional sa-learn processes are launched, and then only allow new sa-learn processes too be launched if adequate system resources are available, then this MiaB system instability would be remedied.

The system being reported about runs on a virtual machine with 2 GB of real RAM and 1 GB of virtual swap memory. Greatly increasing the system resources allocated to the VM avoids this problem, but then that greatly increases the cost of the VM hosting service while the additional allocated system resources are only utilized in the situation described in this problem report. Documentation about sa-learn is available here: sa-learn Manual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions