Topic: High CPU usage
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello everyone.
We have some issue with CPU loading. The fresh iRedMail installation, working on the server with 12 virtual cpu and 40gb of RAM. We were migrated from iRedMail Mysql free version, with 3000+ mailboxes.
Before we start it in production mode everything was fine. But after release, in working hours (when employees is used it) cpu load is over 90% all the time (top processes is mysql(always) and apps plugin). iRedAdmin, Roundcube and mail clients working very slow or response with 504 Gate-way timeout.
In the night hours everything is loading fine, CPU usage coming to normal too.
In /var/log/mail.log seems everything is ok, except "mail roundcube: <mu662i8s> IMAP Error: Login failed for .... Empty startup greeting (127.0.0.1:143)"
in /var/log/nginx/error.log we have a lot messages "[error] 255136#255136: *63233 upstream timed out (110: Connection timed out) while reading response header from upstream ..."
/etc/mysql/mariadb.conf.d/50-server.cnf:max_connections = 1024
/etc/dovecot/dovecot.conf: mail_max_userip_connections = 1000
Seems like some limits, because in non peak hours cpu loading is fine.
Also, some problems with connecting Outlook 2010 to imap/pop server - got an error (connecting to smtp without problems). At that time, on the others Mail client's we didn't get such error.
Help, please.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.