Thanks Stephan!
I will fold your information into the FAQ as this is a topic which comes up semi regularly on the list.
Nicola
On Fri, Dec 16, 2016, at 07:54 PM, Stephan Lauffer via Info-cyrus wrote:
Hello!While testing 2.5 we struggled over (known) problems like this...:...ssh can't fork process to run service imaps/ipv4: Resourcetemporarily unavailableI searchd... and I found your FAQ......and this "tcp_keepalive = 1" hint was doing a good job, but notfixing our problem completely. Less processes as without this settingbut too many at all.Btw we have a murder with 5 backends and each has about 5k mboxes.With 2.4 we have about 400 imapd processes on the backends (in normalstate) and about 800 on the proxy. Peaks raises this values for sure.But we still wasn't able to get over a limit of about 500 imapds onour new system which is running 2.5. Yesterday night I found ourproblem:SYSTEMD(and not cyrus-imapd-2.5, but 2.5 was running with systemd here...)I guess there may be more people out there which may be interested ina solition (we will add fixes to our systemd scripts of our suse buldssoon, seeThe first problem there is:Systemd does not care about your /etc/security/limits.confThe second problem is:Systemd comes with a new limit called "TasksMax". You will find thislimit f.e. in /etc/systemd/system.conf as "DefaultTasksMax=512". Butyou will NOT find this limit in "cat /proc/`cat/var/run/cyrus.pid`/limits".The solution is to add a file with a systemd override for thisservice. F.e. use the systemctl edit <sevice> command... (like"systemctl edit cyrus-imapd.service") or place a file in/etc/systemd/system/cyrus-imapd.service.d/override.conf with f.e.:[Service]TasksMax=2048LimitNOFILE=10000The LimitNOFILE is just a guess... maybe you may not need this here.After setting this override you will see a status information aboutyour process count and limit like this:# systemctl status cyrus-imapd.service● cyrus-imapd.service - The Cyrus IMAP and POP Mail ServerLoaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service;enabled; vendor preset: disabled)Drop-In: /etc/systemd/system/cyrus-imapd.service.d└─override.confActive: active (running) since Thu 2016-12-15 20:51:17 CET; 12h agoMain PID: 12901 (master)Tasks: 326 (limit: 2048)[...]What about adding a short hint to your faq? Yes, it is not a cyrusproblem. And yes, a sysadmin should know... but... I guess systemd indepth may not be good known as the old ulimit thing and if you aresearching in the web 99% of the hits deal with ulimit.--Liebe Gruesse, with best regardsStephan LaufferPedagogical University Freiburg - GermanyFon/ Fax: +49 761 682 -559/ -486----Cyrus Home Page: http://www.cyrusimap.org/List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/To Unsubscribe:Email had 1 attachment:
smime.p7s
8k (application/pkcs7-signature)
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus