High CPU usage for "sa-learn" and "spamtrain" processes

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux


2016-11-16 13:19:20 UTC


2016-12-21 20:27:10 UTC


Was this article helpful?

Have more questions?

Submit a request

High CPU usage for "sa-learn" and "spamtrain" processes


High CPU usage for sa-learn and spamtrain processes in the server.


As sa-learn script is used by spamassassin to learn the specific properties of spam from a folder which supposedly contains only spam emails.
CPU usage of the sa-learn process depends on the amount of the emails in mailboxes and its size. Then if the number of emails is huge - CPU overusage is expected.


To workaround the issue use one of three solutions:

  1. Disable the sa-update execution by moving sa-update and spamassassin files from /etc/cron.daily / to different location.
  2. Clear the mailboxes.
  3. Use nice / renice or ionice utilities to decrease the priority of the process sa-learn .
Have more questions? Submit a request
Please sign in to leave a comment.