Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 5.4.2 sending mail causes cpu to pegDNN 5.4.2 sending mail causes cpu to peg
Previous
 
Next
New Post
7/6/2010 12:50 AM
 
I don;t think this is a problem with DNN, but rather the NET framework....however maybe something could be done in DNN to solve the issue. I've logged this issue on Gemini and I'm continuing to look for an easy solution. http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=12939&PROJID=2 Regards, Dave.
 
New Post
7/6/2010 2:35 AM
 
IMHO this is not an issue of .Net framework - which has been used before as well. When I created previously used SendTokenizedBulkMail, I added a delay between mails sent, which might not have been kept for the new messaging solution.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/6/2010 3:42 AM
 
Hi Sebastian,

The delay may not be included in the bulk email, but I'm also having the problem on a single email send.  using the DNN sendemail function.  This is then using the .NET framework  system.mail.smtpclient....which has a known bug...have a look at these links...

http://stackoverflow.com/questions/930236/net-best-method-to-send-email-system-net-mail-has-issues

http://connect.microsoft.com/VisualStudio/feedback/details/146711/smtpclient-does-not-gracefully-close-the-underlying-tcp-ip-connection

From what I understand about it (not much btw!!) the problem only has only become a big issue for IIS7, where the cpu jumps sky high.

Of course I've not yet tested the fix I've suggested, so I might be jumping down the wrong road, but once I've tried it I'll post the results on gemini.

And as always, I'll welcome any comments anyone has on what can be done to fix this!!

Regards,
Dave.
 
New Post
7/7/2010 4:04 AM
 
I'm getting the same issues, 50 to 100% cpu usage whenever even a single email is sent out from any part of the system.
Did not have this issue on version 4.9 (upgrade was a week ago).

I've not been able to find a solution (apart from re-compiling the code...)
 
New Post
7/7/2010 12:40 PM
 
sdfsdadfs sadfasdf wrote:
I'm getting the same issues, 50 to 100% cpu usage whenever even a single email is sent out from any part of the system.
Did not have this issue on version 4.9 (upgrade was a week ago).

I've not been able to find a solution (apart from re-compiling the code...)

 The only ways I've figured out to get around this are
1) Upgrade everything to 4.0 (there's a defect in 4.0 though that you can't attach files greater then like 4 MB)
2) Switch your email processes over to using pickup directory (DNN doesn't have an option for this). Which seems really odd to me.
3) Some people have said this works
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
client.ServicePoint.ConnectionLimit = 1;
client.ServicePoint.MaxIdleTime = 1;

(This only kind of worked for me and still caused a busy thread)

Honestly I just think there's some odd condition that comes to surface and this starts happening with .net 3.5. If you google around the internet you'll notice scattered cases of this and no one has a really awesome solution most of them speak to the defect in 3.5 smtp of not sending that final SMTP protocol command and most recommend switching to pickup directory. Why this only started happening in 5.4.2? I'm sure someone changed something that seemed irrelevant to this and it caused some order of race conditions that causes this to crop up.

I came across this issue on some websites not related to DNN in any way shape or form and we fixed it by switching to pickup directory. Honestly I think relying on .net to send e-mails (unless you are forced to) is not a good idea. Sending messages should be out of process for reasons just like this.

On my DNN instance I don't have anything active that uses DNN's default mail sending so it was easy enough to switch it over to pickup directory and it's been running like a champ ever since.

Sorry I know that's not much of a direct solution but I've never been able to find a direct "oh yea just do this" solution to this issue and ever since I found out about it I always just default to a pickup directory mail structure......

It'd be cool if in 5.5 they added a way to specify pickup directory for mail .... Maybe i'll go create that and we can all vote on it :-p Or maybe there already exists one.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 5.4.2 sending mail causes cpu to pegDNN 5.4.2 sending mail causes cpu to peg


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out