dovecot spawns too many processes dovecot/imap = 376

Issue #172 duplicate
Sophie L created an issue

At approx 1 new process every couple of second, dovecot eventually takes all the memory and the container stops.

root@3a929be0b4cc:/etc/init.d# ps -eaf| grep dovecot/imap | wc -l
376
root@3a929be0b4cc:/etc/init.d# ps -eaf| grep dovecot/imap | wc -l
383
root@3a929be0b4cc:/etc/init.d# ps -eaf| grep dovecot/imap | wc -l
391
root@3a929be0b4cc:/etc/init.d# 

And then I tried a restart:

root@3a929be0b4cc:/etc/init.d# /etc/init.d/dovecot restart
 * Restarting IMAP/POP3 mail server dovecot                                                                                           Error: service(managesieve-login): listen(*, 4190) failed: Address already in use
Error: service(managesieve-login): listen(::, 4190) failed: Address already in use
Error: service(managesieve): Socket already exists: /var/run/dovecot/login/sieve
Error: service(stats): Socket already exists: /var/run/dovecot/stats
Error: service(ssl-params): Socket already exists: /var/run/dovecot/ssl-params
Error: service(ssl-params): Socket already exists: /var/run/dovecot/login/ssl-params
Error: service(replicator): Socket already exists: /var/run/dovecot/replicator
Error: service(aggregator): Socket already exists: /var/run/dovecot/replication-notify
Error: service(pop3): Socket already exists: /var/run/dovecot/login/pop3
Error: service(pop3-login): listen(*, 110) failed: Address already in use
Error: service(pop3-login): listen(::, 110) failed: Address already in use
Error: service(pop3-login): listen(*, 995) failed: Address already in use
Error: service(pop3-login): listen(::, 995) failed: Address already in use
Error: service(log): Socket already exists: /var/run/dovecot/log-errors
Error: service(ipc): Socket already exists: /var/run/dovecot/ipc
Error: service(indexer-worker): Socket already exists: /var/run/dovecot/indexer-worker
Error: service(indexer): Socket already exists: /var/run/dovecot/indexer
Error: service(imap): Socket already exists: /var/run/dovecot/imap-master
Error: service(imap-urlauth-worker): Socket already exists: /var/run/dovecot/imap-urlauth-worker
Error: service(imap-urlauth-login): Socket already exists: /var/run/dovecot/imap-urlauth
Error: service(imap-login): listen(*, 143) failed: Address already in use
Error: service(imap-login): listen(::, 143) failed: Address already in use
Error: service(imap-login): listen(*, 993) failed: Address already in use
Error: service(imap-login): listen(::, 993) failed: Address already in use
Error: service(imap-hibernate): Socket already exists: /var/run/dovecot/imap-hibernate
Error: service(doveadm): Socket already exists: /var/run/dovecot/doveadm-server
Error: service(dns_client): Socket already exists: /var/run/dovecot/dns-client
Error: service(director): Socket already exists: /var/run/dovecot/director-admin
Error: service(director): Socket already exists: /var/run/dovecot/director-userdb
Error: service(dict): Socket already exists: /var/run/dovecot/dict
Error: service(dict-async): Socket already exists: /var/run/dovecot/dict-async
Error: service(config): Socket already exists: /var/run/dovecot/config
Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Error: service(auth): Socket already exists: /var/run/dovecot/auth-smtp
Error: service(auth-worker): Socket already exists: /var/run/dovecot/auth-worker
Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty
Error: service(quota-status): listen(*, 13001) failed: Address already in use
Error: service(quota-status): listen(::, 13001) failed: Address already in use
Fatal: Failed to start listeners
                                                                                                                               [fail]
root@3a929be0b4cc:/etc/init.d# 

And so the party grew out of control,

root@3a929be0b4cc:/# !ps
ps -eaf| grep dovecot/imap | wc -l
443
root@3a929be0b4cc:/# 

... Until I killed and restarted,

root@3a929be0b4cc:/# killall imap && /etc/init.d/dovecot restart

and then it did the same. So I restarted the container and it's fine again, but unsure why this happened. Clues?

Where are the dovecot logs files?

Thanks.

Comments (5)

  1. Log in to comment