Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - CPU spikes every 60 seconds
  FAQ FAQ  Forum Search   Register Register  Login Login

CPU spikes every 60 seconds

 Post Reply Post Reply
Author
Alec Skelly View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alec Skelly Quote  Post ReplyReply Direct Link To This Post Topic: CPU spikes every 60 seconds
    Posted: 08 April 2004 at 3:29pm

Our SpamFilter (1.2.0.212) is pushing the CPU up to 35% for about 5 seconds every 60 seconds, even when there are no inbound connections (I changed the listening port number to test).  During the spike, the SpamFilter GUI freezes.  This started about a week ago; it was fine before that.  I noticed in the GUI that the various lists are reloaded from text files every 60 seconds, so I tried clearing out the lists and removing the files, but that didn't help.  I disconnected the database and that didn't help either.  I moved all of the lists and the database to a separate installation on a different box and there is no spiking on that box.  Has anybody else seen this?  Any ideas?

 

Back to Top
Eric View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eric Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2004 at 12:39pm

is that on an intel or amd box ?

(see my topic cpu usage http://www.logsat.com/spamfilter/forums/showmessage.asp?messageID=3348)

Back to Top
Alec Skelly View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alec Skelly Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2004 at 1:07pm

It's an Intel.

 

Back to Top
Alec Skelly View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alec Skelly Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2004 at 4:38pm

This problem is solved.  It turned out to be the "Remember Stats" checkbox being checked.

 

Back to Top
eric View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote eric Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2004 at 4:52am

mmm, well it indeed eats 4% cpu, but i need that for my asp pages from dan...

weird that the stats are so inefficient.

Back to Top
Alec Skelly View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alec Skelly Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2004 at 1:38pm

If you're only seeing 4% then you're lucky; it uses 35%+ on each of my boxes here for 5+ seconds at a time.  If you look at the spamfilter.ini file when "Remember Stats" is turned on, you'll see why it incurs quite a bit of overhead.  It looks like 1 line has to be written for every country in the world.  Still I would expect file I/O to be a whole lot less CPU intensive than that, so there must be something else going on as well.

 

Back to Top
Dave G. View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dave G. Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2005 at 11:54am

This is indeed a problem. I've been working this issue for a couple days, when I noticed my systems start to hang. Ran a CPU usage. Every 30 seconds Max CPU usage for 10 seconds. I just flipped off the "Remember Stats" flag and sure enough that stopped the 100% CPU issue. I shouldn't have to discontinue use of a feature because of a this issue. Is this problem being worked by Support?

Another issue I've run into is that it CPU jumps to 100% for about 10 seconds when you save the settings. Even this kind of utilization should be unnecessary.

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4106
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2005 at 12:23pm
Dave,

If the "Remember Stats" option is checked, SpamFilter will write about 245 entries in the SpamFilter.ini file every 60 seconds. When the "Save Settings" button is clicked, the same entries will be written again.

The "file write" process should not be CPU intensive at all, and since the file size is very small, even the file I/O should be minimal.

Do you have antivirus running on the server? Some A/V products have very different (worse...) performance than others. Have you tried (if that's not the case already) excluding the SpamFilter.ini file from the real-time antivirus scanning? It's very possible that the A/V software is not very efficient, and locks that file for a longer-than-usual time forcing SpamFilter to wait.
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2005 at 10:56pm

Here is the CPU on my server running a VERY active MSSQL, 15 Instances of SpamFilter (All saving the Stats) and our SpamFilter Web GUI.  This server is processing over 100,000 messages a day and is not a real "Gee Wiz Wow" server.  only 4 PIII 500 mHz

Regards,



Edited by Desperado
The Desperado
Dan Seligmann.
Work: http://www.mags.net
Personal: http://www.desperado.com

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.184 seconds.