Print Page | Close Window

CPU spikes every 60 seconds

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=3403
Printed Date: 01 December 2025 at 2:36am


Topic: CPU spikes every 60 seconds
Posted By: Guests
Subject: CPU spikes every 60 seconds
Date 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?

 




Replies:
Posted By: Guests
Date 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" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.logsat.com/spamfilter/forums/showmessage.asp?messageID=3348" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.logsat.com/spamfilter/forums/showmessage.asp?messageID=3348 )



Posted By: Guests
Date Posted: 09 April 2004 at 1:07pm

It's an Intel.

 



Posted By: Guests
Date Posted: 09 April 2004 at 4:38pm

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

 



Posted By: Guests
Date 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.



Posted By: Guests
Date 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.

 



Posted By: Guests
Date 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.



Posted By: LogSat
Date 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

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: Desperado
Date 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,



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




Print Page | Close Window