Re: Tons of imap-login processes despite client_limit very high

2023-07-19 Thread Joseph Tam
On Mon, Jul 17, 2023 at 11:27 PM Aki Tuomi wrote: Aki Tuomi wrote: > Did you check the > https://doc.dovecot.org/configuration_manual/service_configuration/#service-limits > to see if it is documented? A pull request would be appreciated if it's > still wrong. Thanks for the updates. It does m

Re: Tons of imap-login processes despite client_limit very high

2023-07-18 Thread D D
Awesome, thank you for the information Aki. :) We'll set vsz_limit and keep service_count = 0, as service_count >= 1 is not an option for us due to the high memory consumption associated with having many imap-login processes running. The new process_shutdown_filter option looks interesting, tho

Re: Tons of imap-login processes despite client_limit very high

2023-07-18 Thread D D
It seems to us that the ideal solution would be that once service_count is reached, a new process is spawned and the remaining connections are moved to that new process so that the old one can die quickly. But I suspect that's not a simple change to do. __

Re: Tons of imap-login processes despite client_limit very high

2023-07-18 Thread Aki Tuomi via dovecot
> On 18/07/2023 12:11 EEST D D wrote: > > > After further testing we realized that it was due to service_count = 100. We > suspect that when the service count is reached, a new process is spawned, > explaining the large number of imap-login processes. > > With service_count = 0 we stick wi

Re: Tons of imap-login processes despite client_limit very high

2023-07-18 Thread D D
Thank you Joseph and Aki! You got it right, the issue was indeed with this service_count=100. With service_count=0 it works as intended (only 4 imap-login processes), though now we're concerned about possible memory leaks with this config. What you described Jospeh (https://www.mail-archive.co

Re: Tons of imap-login processes despite client_limit very high

2023-07-18 Thread D D
After further testing we realized that it was due to service_count = 100. We suspect that when the service count is reached, a new process is spawned, explaining the large number of imap-login processes. With service_count = 0 we stick with only 4 processes (process_min_avail). However, we're c

Re: Tons of imap-login processes despite client_limit very high

2023-07-17 Thread Aki Tuomi via dovecot
> On 18/07/2023 09:18 EEST Joseph Tam wrote: > > > https://www.mail-archive.com/dovecot%40dovecot.org/msg85850.html > > > From: D D > > > We're seeing a ton of imap-login processes running even when using high > > performance mode > > (https://doc.dovecot.org/admin_manual/login_processes

Re: Tons of imap-login processes despite client_limit very high

2023-07-17 Thread Joseph Tam
https://www.mail-archive.com/dovecot%40dovecot.org/msg85850.html From: D D > We're seeing a ton of imap-login processes running even when using high > performance mode > (https://doc.dovecot.org/admin_manual/login_processes/#high-performance-mode). > According to the docs: > > "process_m

Tons of imap-login processes despite client_limit very high

2023-07-17 Thread D D
Hi Dovecot community. We're seeing a ton of imap-login processes running even when using high performance mode (https://doc.dovecot.org/admin_manual/login_processes/#high-performance-mode). According to the docs: "process_min_avail should be set to be at least the number of CPU cores in the s