This might sound as a similar problem I am facing.
After updating to 11.3 (fresh new install and DB migration) imap processes exhibit behavor that I never encountered before. Once a week (or 3-4 days) imap processes go wild for a user (sometimes two). 'omstat -u all' shows reasonable number of imap processes for this particular user, but "ps aux | grep imap" reveals that there 40 or 50 of them. I monitor server and number of imap processes. As soon as imap spin-off begun, server become unresponsive and need to be rebooted. Killing imap and omoff/on does not help.
Here is my little bash script to catch run-away imaps:
Code: Select all
#!/bin/bash
sxbin="/opt/scalix/bin"
prevUser=""
usage="t - calculates <T>otal # of runaway imap processes, '0' for none"
usage1="u - shows <U>ser list omstat and total imap processes"
while getopts "tuh" options
do
case $options in
t )
let timap=`ps aux | grep imap41d | wc -l`
let oimap=`${sxbin}/omstat -u all | wc -l`
if [ $timap -gt $oimap ]
then
let res=($timap - $oimap)
echo $res
else
echo 0
fi
exit 0
;;
u )
${sxbin}/omstat -u imap | while read line
do
user=${line%% / *}
if [[ $prevUser != $user ]]
then
uid=${line#* 605}
uid=${uid:0:2}
let omimap=`${sxbin}/omstat -u all | grep "$user" | wc -l`
let totalimap=`ps U "605"$uid | grep imap41 | wc -l`
if [ $totalimap -gt $omimap ]
then
echo ">>>" $user $omimap $totalimap
else
echo " " $user $omimap $totalimap
fi
fi
prevUser=$user
done
exit 0
;;
* ) echo $usage
echo $usage1
exit 1;;
esac
done
any ideas? Thanks