2
A lot of messages in quarantine can cause MailService.exe process to use a lot of CPU
Problem reported by Webio - June 18, 2015 at 12:52 AM
Known
Hello,
 
since I've started using ClamAV with ClamSup I've enabled virus quarantine for 30 days on my gateways. From few days I've noticed higher CPU usage on my first gateway (probably it is being used as a first MX server for a lot of connections) so I've tried to uninstall SM and reinstall it again but it didn't helped. When I was entering Quarantine it shows 5000 messages, it does not allow to paginate between them and when I'm ordering by date not all messages are being displayed. So I've decided to check quarantine directory using total commander. I've performed search for *.eml files which number was about 60k. I've started removing them and this caused MailService.exe process to drop froum 50-70% CPU to 10-20% which is normal for this gateway. Maybe there is some kind of bug in Quarantine directory checking which is causing troubles when too much messages are being stored in quarantine folder.
 
Regards

3 Replies

Reply to Thread
0
Hemen Shah Replied
June 18, 2015 at 3:18 AM
Hi,
 
I too notice increased in CPU usage post SM14 upgrade but not sure if quarantine message count and its indexing is causing the same, memory usage is also increased but that is understood due to clamd.
tried quarantine count to reduce to 15 days and saw that CPU usage got down a bit.
 
We need to have further option of 10 / 5 days as well for quarantine messages.
 
Regards
0
Matt Petty Replied
June 18, 2015 at 10:10 AM
Employee Post
Was this CPU usage consistently high or does it spike?
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Robert Emmett Replied
June 18, 2015 at 12:01 PM
Employee Post
Webio, I can see how the CPU could be running high with 60k messages in quarantine.  Currently, quarantined messages are left in the spool but flagged so they aren't "processed."  Because the spool folders are constantly being searched for messages, this explains the high CPU usage.  I have added this to our bugs list so that we can re-examine how we deal with quarantined messages.
 
Hemen, I have added your request for additional options for quarantine length (5 and 10 days) to our features request list. I would also recommend that you start a new thread with this request to facilitate tracking.  This thread will be devoted to Webio's original post.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com

Reply to Thread