1 (edited by radpost 2020-07-09 07:54:40)

Topic: High Memory Usage

Hi Everyone.

My VPS (1 vcpu/2GB RAM) is triggering high memory usage (100%) errors for me about once or twice a day.

It's a low load mail server. I don't mind occasionally going in there restarting some services if that's what it takes.

My htop and netdata is attached.

How do I restart the process taking up the most memory: clamd

I've tried:

service clamd status
service clamd.d status
service clamav status
service clamavd status

They all say that the service doesn't exist.


IREDMAIL SERVER INFO
=================
- iRedMail version: 1.2.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: CentOS Linux release 7.8.2003 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL/MariaDB
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

Post's attachments

2020-07-09_htop.png 221.97 kb, file has never been downloaded. 

2020-07-09_ram.png
2020-07-09_ram.png 32.58 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: High Memory Usage

With 2GB memory, it's expected that clamav may take 100% CPU while scanning emails.
At least 4GB RAM is recommended for a low traffic mail server to satisfy ClamAV + SpamAssassin.

3

Re: High Memory Usage

ZhangHuangbin wrote:

With 2GB memory, it's expected that clamav may take 100% CPU while scanning emails.
At least 4GB RAM is recommended for a low traffic mail server to satisfy ClamAV + SpamAssassin.

Thanks Zhang.