[Dovecot] many instances om imap and imap-login
Hi,
Im using dovecote as my IMAP interface. However i do have a lot of imap instances. its only 7 user using the system as i get this. please advice.
1230 ? S 0:00 imap-login 1309 ? S 0:00 imap-login 1387 ? S 0:00 imap-login 1388 ? S 0:00 imap-login 1389 ? S 0:00 imap-login 1390 ? S 0:00 imap-login 1391 ? S 0:00 imap-login 1399 ? S 0:00 imap 1400 ? S 0:00 imap 1401 ? S 0:00 imap 1402 ? S 0:00 imap 1406 ? S 0:00 imap 1442 ? S 0:00 imap 1636 ? S 0:00 imap 1637 ? S 0:00 imap-login 1638 ? S 0:00 imap-login 1640 ? S 0:00 imap 1683 ? S 0:00 imap-login 1684 ? S 0:00 imap-login 1685 ? S 0:00 imap-login 1686 ? S 0:00 imap-login 1687 ? S 0:00 imap-login 1689 ? S 0:00 imap-login 1692 ? S 0:00 imap 1693 ? S 0:00 imap 1697 ? S 0:00 imap 1698 ? S 0:00 imap 1699 ? S 0:00 imap 1701 ? S 0:00 imap 1914 ? S 0:00 imap 1916 ? S 0:00 imap 1965 ? S 0:00 imap-login 1968 ? S 0:00 imap 1969 ? S 0:00 imap 1971 ? S 0:00 imap-login 1974 ? S 0:00 imap-login 1980 ? S 0:00 imap-login 1981 ? S 0:00 imap-login 2068 ? S 0:00 imap 2069 ? S 0:00 imap 2071 ? S 0:00 imap 2072 ? S 0:00 imap-login 2079 ? S 0:00 imap 2157 ? S 0:00 imap-login 2158 ? S 0:00 imap-login 2159 ? S 0:00 imap-login 2160 ? S 0:00 imap-login 2161 ? S 0:00 imap-login 2162 ? S 0:00 imap-login 2332 ? S 0:00 imap 2337 ? S 0:00 imap 2338 ? S 0:00 imap 2339 ? S 0:00 imap 2340 ? S 0:00 imap 2341 ? S 0:00 imap-login 2342 ? S 0:00 imap-login 2386 ? S 0:00 imap 2387 ? S 0:00 imap-login 3095 ? S 0:00 imap 3096 ? S 0:00 imap-login
/jon
On Tuesday 26 April 2005 14:58, Jon wrote:
Hi,
Im using dovecote as my IMAP interface. However i do have a lot of imap instances. its only 7 user using the system as i get this. please advice.
Having lots of processes running isn't automatically a bad thing, but you do seem to have quite a lot of imap and imap-login processes, so:
From a dovecot.conf on a server I run being used by about 7 people: (Comments are from dovecot-sample.conf)
# Should each login be processed in it's own process (yes), or should one # login process be allowed to process multiple connections (no)? Yes is more # secure, espcially with SSL/TLS enabled. No is faster since there's no need # to create processes all the time. login_process_per_connection = no
So if security is less of a concern than having many processes running, you should set this to no.
# Number of login processes to create. If login_process_per_user is # yes, this is the number of extra processes waiting for users to log in. login_processes_count = 1
I set this low because I don't need the extra processes.
# Maximum number of extra login processes to create. The extra process count # usually stays at login_processes_count, but when multiple users start # logging in at the same time more extra processes are created. To prevent # fork-bombing we check only once in a second if new processes should be # created - if all of them are used at the time, we double their amount until # limit set by this setting is reached. This setting is used only if # login_process_per_use is yes. #login_max_processes_count = 128
You might want to set this to something like 4?
# Maximum number of connections allowed in login state. When this limit is # reached, the oldest connections are dropped. If login_process_per_user # is no, this is a per-process value, so the absolute maximum number of users # logging in actually login_processes_count * max_logging_users. #login_max_logging_users = 256
Probably no need to worry about this.
1230 ? S 0:00 imap-login 1309 ? S 0:00 imap-login
<snip>
2387 ? S 0:00 imap-login 3095 ? S 0:00 imap 3096 ? S 0:00 imap-login
/jon
Other things to think about:
Are the mailboxes being accessed via Webmail? What Mail application are your users using? Have you checked what state the connections are in?
HTH,
Dominic GoodforBusiness.co.uk I.T. Services for SMEs in the UK.
On Tue, 2005-04-26 at 15:58 +0200, Jon wrote:
Im using dovecote as my IMAP interface. However i do have a lot of imap instances. its only 7 user using the system as i get this. please advice.
Dovecot uses one imap-login and one imap process for each connection. Some clients can create 3-5 IMAP connections which they use, that's probably the reason.
participants (3)
-
Dominic Marks
-
Jon
-
Timo Sirainen