Throttle MTA CPU Usage?

Discussions on webmail and the Professional version.
Post Reply
JoshWithrow
Posts: 192
Joined: Tue Mar 22, 2005 1:18 pm

Throttle MTA CPU Usage?

Post by JoshWithrow » Tue Dec 05, 2006 7:28 pm

Is there any way to throttle the MTA's CPU Usage? I am running a multi-function server and have recently installed SpamAssassin and configured the MTA pickup event to pass the messages to SA. When this event fires it causes the CPU to jump to 100% usage for each mail processed.

Is there any way to throttle the MTA CPU usage?

labsy
Posts: 148
Joined: Sun Nov 16, 2003 6:49 am
Location: Slovenia

Post by labsy » Tue Dec 05, 2006 9:10 pm

Which process consumes CPU? SpamAssassin or MailEnable MTA?
You may try running the service or process with LOW priority:

Code: Select all

start /low /wait  c:\SomeFolder\Service.exe
I run SpamAssasin collector and AwStats update this way and it works great.
Image
Windows Hosting Sollutions Provider
http://www.hostmachine.net

JoshWithrow
Posts: 192
Joined: Tue Mar 22, 2005 1:18 pm

Post by JoshWithrow » Thu Nov 01, 2007 7:32 pm

I don't have perl running as a service. I have it just being called via cmd line.

In this instance, however, I have the MTA calling a VBS file which in turn calls perl...

cscript //T:30 "C:\Program Files\Mail Enable\Bin\MTASpam.vbs"

What happens is everytime perl is launched hit hogs all the CPU for the entire time it's processing a mail.

If you have a different approach to handling this my ears are open.

labsy
Posts: 148
Joined: Sun Nov 16, 2003 6:49 am
Location: Slovenia

Post by labsy » Sat Nov 03, 2007 3:54 am

JoshWithrow wrote:...In this instance, however, I have the MTA calling a VBS file which in turn calls perl...

cscript //T:30 "C:\Program Files\Mail Enable\Bin\MTASpam.vbs"
Edit your VBS script and look for "perl". Replace command line "perl" with "start /low /wait perl". This should run "perl" executable with lowest priority.
Image
Windows Hosting Sollutions Provider
http://www.hostmachine.net

Post Reply