> Forums > Active Forums > Community Support > MailConnector performing millions of POP3 connections per day
Last Post 23 Mar 2011 08:35 PM by Will Morgenweck. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
David O'Leary
Customers
David O'Leary
Post Count:189

--
15 Mar 2011 01:52 PM
    • Active Forums Version: 4.2.7
    • DotNetNuke Version: 5.6.1
    I recently upgraded to ActiveForums 4.2.7 (I'm waiting on a help desk response so we can try upgrading to 4.3.5) and just figured out yesterday that it was the source of performance issues we've been having on our server lately. In the last week, it has made over 26 million POP3 connections to our email server. This is consuming 25% of the processing power of our 4 core server.

    We've got 379 forums which all have MailConnector running, each with it's own mailbox. Prior to my changes yesterday (to make it run less frequently), each mailbox was making around 15,000 connections per day. Prior to the 4.2.7 upgrade, all the forums together were making 5000 connections per day.

    Upgrading to DNN 5.6.1 did not help. There are no errors being thrown to the EventLog.

    So what might be causing this? Will upgrading to 4.3.5 fix it?
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    15 Mar 2011 01:59 PM
    The default setting is once every 2 minutes per forum. I have seen instances where the scheduler will run multiple times. This is usually caused when the scheduler interval isn't long enough to allow for all connections to be processed. Another option is to disable the scheduler task and setup a remote task to /mc/getemail.aspx. That will serve the same purpose as the scheduled task but offer more control for the process.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    15 Mar 2011 02:48 PM
    Will, there's something far more screwy going on. Each mailbox was making 15,000 connections per day, that's 10 connections per minute.

    I've been decreasing the frequency the schedule task runs since yesterday. It's currently set to run every 4 hours. It's making things a little better but it's doing a huge number of connections (3600 per mailbox today) when it does run and working my very powerful 4 core machine very hard for 40 minutes most of the time it runs. And there's very little mail in any of these folders.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    15 Mar 2011 02:53 PM
    This definitely sounds like the scheduler issue we see from time to time. Keep in mind, Active Forums doesn't initiate the connection. Everything is based upon the scheduler. I believe I have a powershell script that you can add to your windows tasks that call the process for you. This is much more reliable in large configurations.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    15 Mar 2011 03:26 PM
    Thanks Will, I'm doing some testing now to make sure email is getting picked up properly using /mc/getemail.aspx
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1331

    --
    15 Mar 2011 05:58 PM
    Posted By Will Morgenweck on 15 Mar 2011 02:59 PM
     Another option is to disable the scheduler task and setup a remote task to /mc/getemail.aspx.

    How is this done?
    I am using the latest AS/AF/DNN available.
    Thanks.
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    15 Mar 2011 10:05 PM
    I've setup my external monitoring service (I use BinaryCanary.com but there are thousands of others) to ping the /DesktopModules/ActiveForums/mc/getemail.aspx page of the site. It looks like this should work well but I'll be keeping a close eye on it over the next couple days.
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    23 Mar 2011 12:24 PM

    A quick follow-up...
    Turning off the DNN schedule item and using the external service made a truly dramatic change. We went from over 5 million daily POP3 connections to an average of 25,000. Server utilization went from averaging 45% utilization (which is WAY to high for a web server) to 15%. I wonder how many other servers out there are being brought to their knees due to this problem... I also wonder why it got twice as bad under 4.2.7.

    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    23 Mar 2011 04:22 PM
    I just noticed that DNN 5.6.2 (released today) "Fixed race condition in the core scheduler ". Wonder if that's related.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    23 Mar 2011 08:35 PM
    I just noticed that DNN 5.6.2 (released today) "Fixed race condition in the core scheduler ". Wonder if that's related.

    More than likely it is related. We haven't changed the mail connector in quite a long time. Based upon the volume you described, I still believe using the external service is a better solution.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > MailConnector performing millions of POP3 connections per day
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy