CPU spikes every 60 seconds |
Post Reply
|
| Author | |
Alec Skelly
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Topic: CPU spikes every 60 secondsPosted: 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?
|
|
![]() |
|
Eric
Guest Group
|
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
Alec Skelly
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 April 2004 at 1:07pm |
|
It's an Intel.
|
|
![]() |
|
Alec Skelly
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 April 2004 at 4:38pm |
|
This problem is solved. It turned out to be the "Remember Stats" checkbox being checked.
|
|
![]() |
|
eric
Guest Group
|
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Alec Skelly
Guest Group
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Dave G.
Guest Group
|
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
LogSat
Admin Group
Joined: 25 January 2005 Location: United States Status: Offline Points: 4106 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Desperado
Senior Member
Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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.196 seconds.


Topic Options
Post Options
Thanks(0)



