Help! imapd is spawning multiple processes, all of a sudden, for no reason!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help! imapd is spawning multiple processes, all of a sudden, for no reason!
# 1  
Old 02-26-2009
Question Help! imapd is spawning multiple processes, all of a sudden, for no reason!

Hi All,

I need some assistance, if possible...

Our IMAP server has recently (as of 10:30 GMT today) started spawning multiple processes for no reason! This is causing the mail server's load average to increase continually until the whole machine grinds to a halt.

Here is a typical scenario...
  • user1 opens his mail client, which connects to IMAP. "inetd" starts up a single "imapd" process which is run as user1.
  • user2 then opens his mail client, which connects to IMAP. "inetd" starts up another single "imapd" process which is run as user2.
  • 60 seconds later (roughly), another imapd process is started up, running as user1, so user1 now has two imapd processes running.
  • another minute or so later, user1 gains another imapd process.
  • then user3 connects, and gains one process, but user2 then gains another process as well.
  • This continues until all 20 users or so are connected, and they each have 8 or so processes (at which point the server grinds to a halt, and I have to reboot it).
I must strongly point out that this is seemingly random too. It is not tied to any particular user, we have not recently run any updates to the software, we have not recently changed the configuration, no users have *really* large inboxes or IMAP folders and the whole procedure happens differently every time. Different users connect, and they gain imapd processes at different rates, but the server always keeps spawning new processes and always grinds to a halt, within 3-5 minutes.

This hasn't happened for the entire 117 days that the server has been up, but at just after 10:30 today, it has started happening continually.

I've even tried rebooting the whole machine, and it just starts happening again!

/var/log/messages contains nothing useful at all, and all I can see in /var/log/syslog that relates to IMAP is as follows:

Code:
Feb 26 12:23:32 mail imapd[3401]: connect from 192.168.136.11 (192.168.136.11)
Feb 26 12:23:33 mail imapd[3401]: imaps SSL service init from 192.168.136.11
Feb 26 12:23:33 mail imapd[3401]: Authenticated user=username1 host=[192.168.136.11]
Feb 26 12:23:34 mail imapd[3404]: connect from 192.168.144.22 (192.168.144.22)
Feb 26 12:23:34 mail imapd[3404]: imaps SSL service init from 192.168.144.22
Feb 26 12:23:34 mail imapd[3404]: Authenticated user=username2 host=l10-2.domain.com [192.168.144.22]
Feb 26 12:23:38 mail imapd[3405]: connect from 192.168.144.104 (192.168.144.104)
Feb 26 12:23:38 mail imapd[3405]: imaps SSL service init from 192.168.144.104
Feb 26 12:23:39 mail imapd[3405]: Authenticated user=username3 host=tecra2.domain.com [192.168.144.104]
Feb 26 12:23:40 mail imapd[3409]: connect from 192.168.132.234 (192.168.132.234)
Feb 26 12:23:40 mail imapd[3409]: imap service init from 192.168.132.234
Feb 26 12:23:40 mail imapd[3409]: Authenticated user=username4 host=AlexDixon.domain.com [192.168.132.234]
Feb 26 12:23:50 mail imapd[3422]: connect from 192.168.144.46 (192.168.144.46)
Feb 26 12:23:51 mail imapd[3422]: imaps SSL service init from 192.168.144.46
Feb 26 12:23:51 mail imapd[3422]: Authenticated user=username1 host=cvg-2win.domain.com [192.168.144.46]
Feb 26 12:24:06 mail imapd[3430]: connect from 192.168.128.136 (192.168.128.136)
Feb 26 12:24:06 mail imapd[3430]: imaps SSL service init from 192.168.128.136
Feb 26 12:24:06 mail imapd[3430]: Logout user=??? host=it3.domain.com [192.168.128.136]
Feb 26 12:24:18 mail imapd[3436]: connect from 192.168.144.120 (192.168.144.120)
Feb 26 12:24:19 mail imapd[3436]: imaps SSL service init from 192.168.144.120
Feb 26 12:24:22 mail imapd[3436]: Authenticated user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:24:22 mail imapd[3445]: connect from 192.168.144.70 (192.168.144.70)
Feb 26 12:24:22 mail imapd[3445]: imaps SSL service init from 192.168.144.70
Feb 26 12:24:23 mail imapd[3445]: Authenticated user=username6 host=r500-6.domain.com [192.168.144.70]
Feb 26 12:24:29 mail imapd[3454]: connect from 192.168.144.120 (192.168.144.120)
Feb 26 12:24:29 mail imapd[3454]: imaps SSL service init from 192.168.144.120
Feb 26 12:24:29 mail imapd[3454]: Authenticated user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:24:34 mail imapd[3462]: connect from 192.168.136.11 (192.168.136.11)
Feb 26 12:24:34 mail imapd[3462]: imaps SSL service init from 192.168.136.11
Feb 26 12:24:34 mail imapd[3469]: connect from 192.168.144.36 (192.168.144.36)
Feb 26 12:24:34 mail imapd[3469]: imaps SSL service init from 192.168.144.36
Feb 26 12:24:34 mail imapd[3462]: Authenticated user=username7 host=[192.168.136.11]
Feb 26 12:24:34 mail imapd[3401]: Killed (lost mailbox lock) user=username7 host=[192.168.136.11]
Feb 26 12:24:37 mail imapd[3469]: Login user=username8 host=l10-1.domain.com [192.168.144.36]
Feb 26 12:24:37 mail imapd[3475]: connect from 192.168.144.36 (192.168.144.36)
Feb 26 12:24:37 mail imapd[3475]: imaps SSL service init from 192.168.144.36
Feb 26 12:24:38 mail imapd[3475]: Login user=username8 host=l10-1.domain.com [192.168.144.36]
Feb 26 12:24:40 mail imapd[3479]: connect from 192.168.144.104 (192.168.144.104)
Feb 26 12:24:40 mail imapd[3479]: imaps SSL service init from 192.168.144.104
Feb 26 12:24:40 mail imapd[3479]: Authenticated user=username3 host=tecra2.domain.com [192.168.144.104]
Feb 26 12:24:41 mail imapd[3485]: connect from 192.168.144.10 (192.168.144.10)
Feb 26 12:24:41 mail imapd[3485]: imaps SSL service init from 192.168.144.10
Feb 26 12:24:41 mail imapd[3485]: Authenticated user=username9 host=cvg-tecra2.domain.com [192.168.144.10]
Feb 26 12:24:41 mail imapd[3436]: Command stream end of file, while reading line user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:24:42 mail imapd[3454]: Command stream end of file, while reading line user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:24:42 mail imapd[3405]: Killed (lost mailbox lock) user=username3 host=tecra2.domain.com [192.168.144.104]
Feb 26 12:24:44 mail imapd[3490]: connect from 192.168.144.120 (192.168.144.120)
Feb 26 12:24:44 mail imapd[3490]: imaps SSL service init from 192.168.144.120
Feb 26 12:24:47 mail imapd[3490]: Authenticated user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:24:52 mail imapd[3516]: connect from 192.168.144.89 (192.168.144.89)
Feb 26 12:24:52 mail imapd[3516]: imaps SSL service init from 192.168.144.89
Feb 26 12:24:52 mail imapd[3516]: Authenticated user=username10 host=opti12.domain.com [192.168.144.89]
Feb 26 12:24:54 mail imapd[3519]: connect from 192.168.144.46 (192.168.144.46)
Feb 26 12:24:54 mail imapd[3519]: imaps SSL service init from 192.168.144.46
Feb 26 12:24:54 mail imapd[3519]: Authenticated user=username1 host=cvg-2win.domain.com [192.168.144.46]
Feb 26 12:24:54 mail imapd[3422]: Killed (lost mailbox lock) user=username1 host=cvg-2win.domain.com [192.168.144.46]
Feb 26 12:25:14 mail imapd[3552]: connect from 192.168.144.120 (192.168.144.120)
Feb 26 12:25:14 mail imapd[3552]: imaps SSL service init from 192.168.144.120
Feb 26 12:25:14 mail imapd[3552]: Authenticated user=username5 host=mkc14.domain.com [192.168.144.120]
Feb 26 12:25:19 mail imapd[3475]: Logout user=username8 host=l10-1.domain.com [192.168.144.36]

Does anyone have any idea what is going on here??

Thanks in advance! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Script on Solaris spawning 2 processes for one shell script execution

Hi, I am having a shell script on Solaris 10 which has a while loop as shown below. #!/usr/bin/ksh # while do sleep 60 done Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies

2. Shell Programming and Scripting

Shell script executed from Informatica ETL tool is spawning 2 processes for one script

Hi, I am having a shell script which has a while loop as shown below. while do sleep 60 done I am executing this script from Informatica ETL tool command task from where we can execute UNIX commands/scripts. When i do that, i am seeing 2 processes getting started for one script... (2 Replies)
Discussion started by: chekusi
2 Replies

3. AIX

Multiple pconsole processes spawning indefinetly

Good night everyone, I've been trying to make AD authentication work with RBAC and I think I messed my test LPAR up. I've manually modified the /etc/security/user.roles file, adding a role to one of my AD users (who is not defined locally) and then runned setkst. It worked fine, but now I found... (3 Replies)
Discussion started by: Janpol
3 Replies

4. Shell Programming and Scripting

need help ps -e on multiple processes

:)Hi there, I am new to scripting and wanted to see if someone can show me how to grep on multiple processes and send the output to a file in /home/mydir/output. I am aware of ps -ef | grep on 1 process but need help looking up multiple processes, can you use this command ps -elf | grep |pid1... (4 Replies)
Discussion started by: abbya
4 Replies

5. Shell Programming and Scripting

kill multiple processes by name

Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes. I tried this but didn't work: >> ps -ef|grep proxy_copy root 991 986 0 14:45:34 ? 0:04 proxy-stagerd root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Discussion started by: catalinawinemxr
2 Replies

6. HP-UX

oracle processes with SOCKT in glance command....reason?

Hi Friends, I could see following oracle process in the glance command. i see nothing running in the database although. I tried google it but no success. Another team ,which needs all the processes on the server is complaining. Can someone help me what exactly are these sessions/ how to ... (1 Reply)
Discussion started by: kunwar
1 Replies

7. UNIX for Advanced & Expert Users

Crontab spawning multiple at processes

Hi - I need help. My user crontab is spawning multiple at processes (and multiple mencoder program starts, that exit, then restart, repeatedly), locking up my system. For example I have this entry in my crontab: $ sudo crontab -u victoria -e * * * * * ~/recordings/pvr1 * * * * *... (10 Replies)
Discussion started by: gstuart
10 Replies

8. Shell Programming and Scripting

Spawning multiple threads in Unix

Hi, I need to spawn mutilpe threads , each invoking a different set of shell scripts, in parallel. What would be the best way to do that. Any sample script would greatly help. I am a novice at Unix so any help is much appreciated. Thanks (5 Replies)
Discussion started by: neeto
5 Replies

9. Programming

spawning multiple processes spread across two files

I want to spawn n child processes but have two different classes..with the foremost one forking/spawning the child process and the latter performing a function w/ the spawned processes. I can do this in one class with an if statement and the simple if((pid=fork())==0) //child process { ... (1 Reply)
Discussion started by: StrengthThaDon
1 Replies
Login or Register to Ask a Question