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...Performance and...Performance and...DNN App Pools Killing Server with High CPU UtilizationDNN App Pools Killing Server with High CPU Utilization
Previous
 
Next
New Post
9/26/2011 4:18 PM
 
We run multiple web sites on different versions of DNN on our Windows 2003 web server along with some web applications that we have built for various customers.  

We have been getting quite a few calls over the past year about performance issues with our DNN sites and our applications, and have recently been able to "witness" the problems by responding very quickly to reports from our customers.

Each time we are alerted to the issue we find the same problem - there are two application pools for DNN web sites - each gobbling up about 50% of the cpu.

The facts are:
  1. The sites are low use sites, and we see no spike in user activity during these high use periods or any time throughout the day
  2. This is happening frequently, probably daily, and although we have not measured it, it would appear that these spikes are happening at about the same time of day
  3. The spike in cpu utilization affects all web sites and applications running on our web servers
  4. Upon bouncing the two DNN app pools, the server returns to a normal state, and the web sites and applications on our server operate as they should
Our perception is that this began happening in earnest with the implementation of DNN 5.x.  We have upgraded some of the problem sites to DNN 6.x but those sites still "participate" in the CPU utilization issue.

Does anyone have any leads as to what might be the cause of this problem? Or how we might be able to fix it?

Thanks in advance for your help on this matter.
 
New Post
9/26/2011 7:40 PM
 
High utilization can be caused by insufficient memory, when cpu utilization is high what is your memory usage.

How much memory does the server have?

How many sites are running on the server?

You may want to separate each site into a separate apppool and set them to recycle when not used for twenty minutes. This will slow startup times but required if too many sites on a server.


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
9/26/2011 7:49 PM
 
for problems such as this I would typically dump the process and then use windbg to examine the contents and see what was causing the spike - often this would be some process that has gone into a perpetual loop this is not an easy thing to do and requires some knowledge of managed debugging and how to use windbg and managed extensions such as ppscor2/sosex/sos.

Before diving into that id recommend you check the event viewer to see if any interesting messages are logged (http://www.dotnetnuke.com/Resources/W...) and consider capturing ALL log items for log4net if you're using dotnetnuke 6 (http://www.dotnetnuke.com/Resources/W...) to see if you can get any clues

Another thing to consider is checking for database deadlocks as they can cause spikes-take a look at the wiki pages at
http://www.dotnetnuke.com/Resources/W...
http://www.dotnetnuke.com/Resources/W...http://www.dotnetnuke.com/Resources/W...
http://www.dotnetnuke.com/Resources/W... (particulary useful if youre on sql 2008 as it's already recorded any historical problems)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/22/2012 9:40 AM
 

More information on this - we have been experiencing this problem since the date of our original post.  Since then we have moved to a new server - Win2008/IIS7/16GB memory/Quad Core and the problem actually has become worse.

Here is the situation - on the old server (2 cpus), certain DNN sites would "go rogue".  If only one site had this condition it would take 50% +/- 2% of cpu for several hours. If more than one site had the condition the cpu would peg at 100%.

On the new server if one site has the "condition" it takes 25% of the cpu, each additional DNN site that "goes rogue" takes an additional 25% of the cpu until the server is pegged at 100%.

I guess it makes sense that on a dual core machine a single rogue instance of DNN takes up 50% of cpu and on a quad core machine a single rogue instance takes up 25%.

Killing the W3WP process eliminates the problem, but eventually the sites chime back in and start up again on their quest to kill the server performance.

We host many DNN sites for many customers - so we are running into this situation every day - each site uses its own app pool.  Since moving to IIS7, with just a few exceptions, the server continues to respond to all web requests on all web sites, however performance is very poor - and does not meet our SLA to our customers.

Many of the sites that "go rogue" are very low use - and we have verified that during these periods of high cpu activity there is no http activity going on - nobody and nothing is accessing the site.  We have verified this through IIS web logs and also using third party software like IIS trace.

We have used SQL Server Profiler to check SQL activity and find nothing out of the ordinary.  There are scheduled tasks running for these rogue sites to purge logs etc, but these same tasks are running for other DNN sites that are not consuming CPU.  We see that the tasks for the rogue and non-rogue sites take just milliseconds to complete.

We have taken dumps of the sites that are consuming cpu, but they provide no useful information because the site is actually doing something - it is not hung, so taking a dump is just a crap shoot.

We attempted to use Microsoft Visual Studio 2010 remote debugging to determine what was being executed, but that failed as well because we are connecting to the server on another domain and we are unable to get remote debugging to load symbols when connecting accross domains.

So we are stuck wonder - What is DNN doing during these high CPU utilization time periods?

Until we can find an answer - have have modifed the app pools of each of our DNN sites to Kill the W3WP process if the site is consuming 23% or more of CPU for more than 5 minutes.  That is our only recourse.

We would greatly appreciate it If someone on the DNN team could offer some insight, and also tell us if our strategy of configuring the app pool to kill itself is going to cause problems (besides an error response to a user who might be accessing the site).

Of course we would like to address this in a different way than we have - but  we need information from the DNN team as to what is going on and how we can control it / and or deal with it effectively.

 

 
New Post
6/22/2012 11:32 AM
 
did you try disabling scheduler (in Host settings) and check, whether the issue remains?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...DNN App Pools Killing Server with High CPU UtilizationDNN App Pools Killing Server with High CPU Utilization


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