Topic: iRedApd bottleneck?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- 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.
today we noticed an unexpected behaviour of our iRedMail server.
During a period of many incoming emails, sending mail was almost impossible and very slow.
Further analysis showed that iRedAPD was running at almost 100% CPU and that the process was the only limiting factor of the server. Please see below screenshot of TOP, CPU load and time of iRedAPD.
I/O of the server as all the other 7 cores were not busy/a limiting factor.
Is it possible that iRedAPD is the bottleneck of the server causing everything to slow down when many emails are processed?
I don't know if this is implemented but would it be possible to fork a new iRedAPD child on each incoming connection/email?
This would balance the load to all available CPU cores and the bottleneck would be gone.
What do you think?
Am I the only one having that kind of issue?
Take care and all the best!