Topic: Tuneup SOGo
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Centos 6.8 x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP-Active Directory
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: /var/log/sogo/sogo.log
====
I have been experiencing trouble setting SOGo so that its operation is not so slow, we currently have almost 1,400 email accounts working and being authenticated against Active Directory working properly via Dovecot IMAP or POP3 both mail clients (Outlook, Thunderbird, etc .) as with Roundcube via web.
I installed SOGo, so customers can synchronize mobile devices with your calendar and contacts, it is configured to use LDAP.
Until here all goes well, the problem has begun to notice now required that mobile users use ActiveSync, the connection to the server is slow and sometimes even zero.
In reviewing /var/log/sogo/sogo.log, basically this is the most recurring error:
Jun 10 01:57:27 sogod [7979]: [ERROR] <0x0x7fbdf9133188[WOWatchDog]> No child available to handle incoming request!
Jun 10 01:57:27 sogod [8003]: <0x0x7fbdfaa24098[SOGoActiveSyncDispatcher]> Sleeping 10 seconds while detecting changes in Ping...
Jun 10 01:57:27 sogod [3616]: <0x0x7fbdf9db2218[SOGoActiveSyncDispatcher]> Sleeping 5 seconds while detecting changes in Ping...
Jun 10 01:57:28 sogod [7979]: [ERROR] <0x0x7fbdf9133188[WOWatchDog]> No child available to handle incoming request!
Jun 10 01:57:29 sogod [7979]: [ERROR] <0x0x7fbdf9133188[WOWatchDog]> No child available to handle incoming request!
Jun 10 01:57:30 sogod [8004]: <0x0x7fbdfaa8aa28[SOGoActiveSyncDispatcher]> Sleeping 5 seconds while detecting changes in Ping...
Jun 10 01:57:30 sogod [7979]: [ERROR] <0x0x7fbdf9133188[WOWatchDog]> No child available to handle incoming request!
Jun 10 01:57:32 sogod [8003]: <0x0x7fbdfaa24098[SOGoActiveSyncDispatcher]> Sleeping 5 seconds while detecting changes in Ping...
Jun 10 01:57:32 sogod [7979]: [ERROR] <0x0x7fbdf9133188[WOWatchDog]> No child available to handle incoming request!
Looking for a solution and reading in various forums, including the installation guide SOGo; I found that you have to adjust the parameters in the /etc/sysconfig/sogo Prefork =
On the advice of the guide settings I configured the PREFORK = 120 for the number of mailboxes that are handled (> 1200 and nearly 100 EAS)
Additionally, within /etc/sogo/sogo.conf, I added the following configurations:
WOWorkersCount = 120;
SOGoMaximumPingInterval = 3540;
SOGoMaximumSyncInterval = 3540;
SOGoInternalSyncInterval = 60;
WOWatchDogRequestTimeout = 60;
But when restart the sogo service and check the processes running only shows the following:
[root@genos ~]# ps aux | grep sogo
sogo 3616 0.1 0.8 336972 32464 ? Ss 18:29 0:08 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
sogo 7979 5.3 0.4 304920 15944 ? S 14:41 16:01 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
sogo 8003 0.2 1.1 351216 45360 ? Ss 14:41 0:37 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
sogo 8004 0.2 1.4 362224 55492 ? Ss 14:41 0:39 /usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log
root 16212 0.0 0.0 103340 868 pts/2 S+ 19:42 0:00 grep sogo
Additionally within /etc/httpd/conf.d/SOGo.conf, settings for ActiveSync is:
ProxyPass / Microsoft-Server-ActiveSync \
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
retry = 60 ConnectionTimeout = 5 timeout = 3600
ProxyPass / SOGo http://127.0.0.1:20000/SOGo retry = 0
And SOGo still very slow.
Server hardware has a Xeon 8 cores and 16GB of RAM, and the operating system is updated. I do not know if I'm missing something or some of the parameters is wrong, because SOGo works but too slow.
I appreciate any help
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.