master does not prefork more than 2 imapd and 2 pop3d
Laurent LAVAUD
laurent.lavaud at u-bordeaux2.fr
Thu Jun 12 03:50:58 EDT 2003
When I configure /etc/cyrus.conf to prefork:
- 4 imap
- 3 pop3
- 0 sieve
- 1 lmtpunix
my system shows (ps ax --forest):
14980 ? S 0:00 /opt/cyrus/bin/master -d
14983 ? S 0:00 \_ imapd
14984 ? S 0:00 \_ pop3d
14985 ? S 0:00 \_ lmtpd
14986 ? S 0:00 \_ imapd
14987 ? S 0:00 \_ pop3d
Why only 2 imapd and 2 pop3d ?
My software configuration is:
distribution: debian 2.2r7
kernel: 2.2.20
berkeleydb: 4.0.14
cyrus-sasl: 2.1.13
cyrus-imapd: 2.1.13
openldap: 2.0.17 (used with cyrus-sasl)
My hardware configuration is:
2xPIII 800Mhz
1GB RAM
3 IDE disks
/etc/cyrus.conf:
-- BEGINING OF /etc/cyrus.conf --
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=4
# imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
# pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
-- END OF /etc/cyrus.conf --
/etc/imapd.conf:
-- BEGINING OF /etc/imapd.conf --
configdirectory: /opt/cyrus
partition-default: /var/spool/cyrus
quotawarn: 80
reject8bit: no
hashimapspool: true
admins: cyrus
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
timeout: 10
sievedir: /opt/cyrus/sieve
sieve_maxscriptsize: 32
sieve_maxscripts: 10
lmtpsocket: /var/imap/socket/lmtp
idlesocket: /var/imap/socket/idle
notifysocket: /var/imap/socket/notify
-- END OF /etc/cyrus.conf --
When I start master, here is the output of /var/log/imapd.log:
-- BEGINING OF /var/log/imapd.log --
Jun 12 09:41:11 hippoha3 master[16512]: setrlimit: Unable to set file descripto\rs limit to 2147483647: Operation not permitted
Jun 12 09:41:11 hippoha3 master[16512]: setrlimit: Unable to set file descripto\rs limit to 2147483647: Operation not permitted
Jun 12 09:41:11 hippoha3 master[16512]: setrlimit: Unable to set file descripto\rs limit to 2147483647: Operation not permitted
Jun 12 09:41:11 hippoha3 master[16512]: setrlimit: Unable to set file descripto\rs limit to 2147483647: Operation not permitted
Jun 12 09:41:11 hippoha3 master[16512]: retrying with 1024 (current max)
Jun 12 09:41:11 hippoha3 master[16512]: retrying with 1024 (current max)
Jun 12 09:41:11 hippoha3 master[16512]: retrying with 1024 (current max)
Jun 12 09:41:11 hippoha3 master[16512]: retrying with 1024 (current max)
Jun 12 09:41:11 hippoha3 master[16512]: process started
Jun 12 09:41:11 hippoha3 master[16512]: process started
Jun 12 09:41:11 hippoha3 master[16513]: about to exec /opt/cyrus/bin/ctl_cyrusd\b
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: recovering cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: recovering cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: skiplist: recovered /opt/cyrus/mai\lboxes.db (1937 records, 171476 bytes) in 0 seconds
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: skiplist: recovered /opt/cyrus/mai\lboxes.db (1937 records, 171476 bytes) in 0 seconds
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: done recovering cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16513]: done recovering cyrus databases
Jun 12 09:41:11 hippoha3 master[16512]: ready for work
Jun 12 09:41:11 hippoha3 master[16512]: ready for work
Jun 12 09:41:11 hippoha3 master[16515]: about to exec /opt/cyrus/bin/imapd
Jun 12 09:41:11 hippoha3 master[16514]: about to exec /opt/cyrus/bin/ctl_cyrusd\b
Jun 12 09:41:11 hippoha3 imap[16515]: executed
Jun 12 09:41:11 hippoha3 master[16516]: about to exec /opt/cyrus/bin/pop3d
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: checkpointing cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: checkpointing cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: archiving database file: /opt/cyru\s/mailboxes.db
Jun 12 09:41:11 hippoha3 pop3[16516]: executed
Jun 12 09:41:11 hippoha3 master[16517]: about to exec /opt/cyrus/bin/lmtpd
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: archiving log file: /opt/cyrus/db/\log.0000000001
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: done checkpointing cyrus databases
Jun 12 09:41:11 hippoha3 ctl_cyrusdb[16514]: done checkpointing cyrus databases
Jun 12 09:41:11 hippoha3 master[16512]: process 16514 exited, status 0
Jun 12 09:41:11 hippoha3 master[16518]: about to exec /opt/cyrus/bin/imapd
Jun 12 09:41:11 hippoha3 lmtpunix[16517]: executed
Jun 12 09:41:11 hippoha3 master[16519]: about to exec /opt/cyrus/bin/pop3d
Jun 12 09:41:11 hippoha3 pop3[16519]: executed
Jun 12 09:41:11 hippoha3 imap[16518]: executed
-- END OF /var/log/imapd.log --
--
Laurent LAVAUD
Centre de Ressources Informatiques
Universite Bordeaux2
143 rue Leo Saignat
33076 Bordeaux cedex
Tel: 05 57 57 15 03
Fax: 05 57 57 45 42
More information about the Info-cyrus
mailing list