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