Spamfilter using all CPU |
Post Reply |
Author | |
roaridse
Newbie Joined: 16 February 2009 Location: Norway Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 12 August 2009 at 6:21am |
Hi,
during the summer we have had some problems where spamfilter uses all cpu and being slow responding.
Sometimes it will help restarting the service - for several hours, and sometimes just for 10 minutes.
It looked a bit like a dos-attack or something, but even after limiting simultaneus connections to just 20 it uses all cpu - and after starting it will use all cpu even with 1-2 connections.
The process uses about between 650MB and 1,2GB of memory, which is fine.
Upgrading to version 4.1.2.812 did not help either.
Any hints?
Best Regards,
Roar Idsøe
|
|
WebGuyz
Senior Member Joined: 09 May 2005 Location: United States Status: Offline Points: 348 |
Post Options
Thanks(0)
|
Are you by any chance using it on a guest OS under Hyper-v or Virtual Server? It needs at least 2 CPU's or if using it under Virtual Server 2005 then give it a larger percentage of the overal cpu.
If stand alone server then I have no clue.
|
|
http://www.webguyz.net
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
Roar,
Can you please zip and email us your SpamFilter's activity logfile for a day this happened, so we can scan it for errors? IF the file is over 8MB in size, please upload it to our FTP server. I'll provide the login information via a PM.
|
|
roaridse
Newbie Joined: 16 February 2009 Location: Norway Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Thanks for reply.
We run the server in an VMWare ESX environment - I'm not sure that this will apply here as well?
The server has been running fine since january/february..
|
|
WebGuyz
Senior Member Joined: 09 May 2005 Location: United States Status: Offline Points: 348 |
Post Options
Thanks(0)
|
In Hyper-v or Virtual Server 2005, having a single CPU for spamfilter was not enough. In Hyper-v you can assign number of virtual CPU's and I currently use 4 for my Spamfilter servers. Not sure but assume VMware has something similar where you can overcommit CPU. Try giving it max resources then backing off a little at a time.
|
|
http://www.webguyz.net
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
roar,
We don't see anything unusual in the activity logfile after an initial analysis. The log is rather large, so we'll be taking another more in depth look after this. In the meantime, could you please try disabling the Bayesian filter (and also disable the "learn new incoming emails" option on the same settings tab) to see if it helps? Could you let us know the size of the db.dat and db.dat.prb files in the \SpamFilter\Corpus directory?
|
|
roaridse
Newbie Joined: 16 February 2009 Location: Norway Status: Offline Points: 14 |
Post Options
Thanks(0)
|
db.dat : 80458KB
db.dat.prb: 73397KB
Now Bayesian filter has been disabled.
Roar
|
|
roaridse
Newbie Joined: 16 February 2009 Location: Norway Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Had to enable bayesian filter again - got too much spam...
The serverload was fine without bayesian filtering.
Any new status with the log i sent?`
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
roar,
Unfortunately there was nothing that can help pinpoint the issue with 100% certainty. We did see a sharp spike in incoming connections (see below) at around 9:20AM, but that should not have caused the CPU to be high, especially if you had set the max connections to 20. It is instead likely that the problem is caused simply by the size of the Bayesian corpus database. To try reducing it, can you please change the value of the parameter: CleanUpCorpusIntervalDays=7 in the SpamFilter.ini file to about one third or one forth of your current value? For example, if right now you have a value of 7, trying changing that to 2. This should cause old entries in the Bayesian database to be removed sooner, thus hopefully reducing its size to a more manageable 10MB-20MB. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.168 seconds.