Many IDLE imap processes but very few connections moved to imap-hibernate
Hi Dovecot community!
I have a strange issue with imap-hibernate. Or more likely it behaves as it's supposed to and it's just that I don't really understand it.
I have enabled it, and it works, but for some reason hibernation happens only to a tiny amount of connections, whereas I have a lot of IDLE imap processes. And I can't find any relevant errors in the logs.
## config ## mail_debug = yes verbose_proctitle = yes
$ doveconf imap_hibernate_timeout imap_hibernate_timeout = 5 secs $ doveconf -a | grep -A 21 'service imap-hibernate' service imap-hibernate { chroot = client_limit = 0 drop_priv_before_exec = no executable = imap-hibernate extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = imap service_count = 0 type = unix_listener imap-hibernate { group = $default_internal_group mode = 0660 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B }
## imap processes ##
$ ps aux | grep "dovecot/imap" | wc -l 2214 ps aux | grep "dovecot/imap" | grep IDLE | wc -l 1258 $ ps aux | grep "imap-hibernate" syslog 1571453 0.0 0.0 4748 3156 ? S 15:44 0:00 dovecot/imap-hibernate [18 connections]
As you can see here I have 1258 IDLE imap processes (out of 2214 in total), and only 18 connections in imap-hibernate. I'd like to have all IDLE processes to be moved to imap-hibernate in order to save up memory.
Any idea why these 1k+ IDLE imap processes are not moved into imap-hibernate?
Thank you!
Well I'm not sure what happened but the issue seems to have resolved itself somehow:
$ ps aux | grep "dovecot/imap" | wc -l 2168 $ ps aux | grep "dovecot/imap" | grep IDLE | wc -l 56 $ ps aux | grep "imap-hibernate" syslog 863411 0.4 0.0 16660 15296 ? S 09:07 1:40 dovecot/imap-hibernate [2298 connections]
Since my initial message we played with the following settings which seem unrelated to hibernation:
mail_debug haproxy_trusted_networks mmap_disable mail_fsync mail_nfs_index mail_nfs_storage mail_max_userip_connections
I'll try to provide more info if the issue arises again.
participants (2)
-
D D
-
pierre.alletru@gmail.com