Index: [Article Count Order] [Thread]

Date:  Mon, 22 Jan 2007 09:17:36 -0700
From:  "Rodrigo Ordonez Licona" <rodrigo (at mark) xnet.com.mx>
Subject:  [coba-e:08651] Re: CPU utilisation
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <200701221614.l0MGEoNo023580 (at mark) admin.xnet.com.mx>
In-Reply-To:  <200701221130531.SM01872@Virus>
X-Mail-Count: 08651

HI Biju,

Here is the script again as an attachment hope that helps..





We modified a script provided by Michael Stauber, to check every 2 minutes
whether this was happening with spamd, Your users are over quota and produce
this behaviour...

Here is the script and good luck,  that situation killed one of our raq 550
servers.

Remember that the list removes carriage returns. We setup cron to run it
every 2 minutes


Regards

Rodrigo O
Xnet
==========================


#!/bin/bash

LIMIT=`expr 60`
for PROID in `ps auxwf |grep "\_ spamd child"|grep -v root |awk '{print
$2}'`
do
HOURS=`ps -fp $PROID | grep -v STIME | awk '{print $7}'|cut -d":" -f2`
MINS=`ps -fp $PROID | grep -v TIME | awk '{print $7}'|cut -d":" -f3`
USER=`ps -fp $PROID | grep -v TIME | awk '{print $1}'`
#echo $PROID
#echo $MINS
#echo $USER
#echo $HOURS
if [ "$HOURS" = "" ]
then
HOURS=`expr 0`
fi
if [ "$MINS" = "" ]
then
MINS=`expr 1`
fi
ELAPSED=`expr $HOURS \* 60`
ELAPSED=`expr $ELAPSED + $MINS`
if (test $ELAPSED -gt $LIMIT )
then
kill -9 $PROID
echo `date +'%Y-%m-%d at %H:%M'` - Killed SPAMd process $PROID belonging \
to user $USER after $HOURS:$MINS>> /var/log/kill-spamd.log
echo `date +'%Y-%m-%d at %H:%M'` - Killed SPAMd process $PROID belonging \
to user $USER after $HOURS:$MINS
fi
done















-----Original Message-----
From: Biju [mailto:biju (at mark) simbanet.co.tz]
Sent: Lunes, 22 de Enero de 2007 01:23 a.m.
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:08648] Re: CPU utilisation

Hi,

Now I can see that another user inmy server taken the cpu process of 85 %
for spamd 


Thanks & Regards,

Biju.V.P
-----Original Message-----
From: Biju [mailto:biju (at mark) simbanet.co.tz]
Sent: Monday, January 22, 2007 11:17 AM
To: 'coba-e (at mark) bluequartz.org'
Subject: CPU utilisation


HI,

I have installed brian's software version 4.6 and I have 600 users in the
server All are using the server to send and receive the mails POP,SMTP and
IMAP are enabled

In the peak hours , I find that we are unable to send or receive mails When
I check the 'top', I could see the cpu utilisation was high and foung
speedy_backend  was taking more than 90%

This can be a problem ?

Please help

Biju



	

8651_2.txt (attatchment)(tag is disabled)