Index: [Article Count Order] [Thread]

Date:  Tue, 10 Jul 2007 15:17:54 +0100
From:  Gustavo Silva <pseudo (at mark) zbronx.com>
Subject:  [coba-e:10348] perl and openwebmail
To:  coba-e (at mark) bluequartz.org
Message-Id:  <46939512.1090503 (at mark) zbronx.com>
X-Mail-Count: 10348

Hello Blues,

I was wondering if anyone had this problem, and found a solution to 
"fight" it :P
This situation rarely happens, but i like to keep the load as low as 
possible, so when this happens it is a pain to me.

Here's the description.

Some client logs to openwebmail, and its one of those clients that keeps 
all the mails, spam, etc on its inbox (despite the fact we warned him 
countless times, to try to keep things as tidy as possible)

Openwebmail spawns a process to read the clients mbox, and because of 
the inumerous mails the box has, takes some time, and load, to display 
the result.

Client gets impatient, and clicks the refresh button. Allas, a new 
process is spawned and the load is now doubled, and tripled, and 
sometimes ... lets say things get really slow..

So when the load is high, im notified, i check the server, see if the 
client is still using the service, kill unneeded processes, let it 
finish. Check the cache databases, clean it all, and we're back on track...

But is there any automated solution for this? Or am i asking something 
impossible? I was thinking in doing something in cron that would 
periodically check if a perl process is running for more than X time, 
then kill -9 it... But maybe thats too extreme..
Any directions, tips would be greatly appreciated.

Server Setup:
Centos4.5
BQ manually installed
OpenWebmail 2.52


Regards,

Gustavo