DotNetNuke process 100% CPU Usage
I see different people asking on DNN forums about CPU being occupied by DNN allot (mostly it spikes to 100%). As I have recently spent some time investigating this I often answer to these questions with something like:
“HI,
We’ve bean also having similar problems (CPU 100%). Mostly it was due to 2 possible reasons (if we can eliminate the server as an issue?!?!)
What is important about these things is that they all still cause problems after improving the performance (well actually execution time) with some standard things (like compression, moving viewstate to the server, improving caching).
So guys you have some real problems:
1. Schedule problems
Poorly programmed scheduled jobs. One good example of this is the FileSyncronization Schedule, if you have allot of files it will very likely spike your server to 100%. I’ve described this problem already on this thread
2. Module problems
Some of the modules are built well, some are not…. also some are configured well, some are not…. to be more concrete, we turned on module caching for DnnBB forum, and with public pages it would just get *stuck* and loop into something until the timeout would brake.
When viewing the application internals with WindowsDebugger at time when the cpu was at 100% I either found only run-away threads with scheduler or DnnBB executing allot of repetitive statements. For DnnBB I got the same result when viewing the SQL database with SQL Profiler.
My immediate cure for the problem was:
1. Turn off file synchronization (it ran every hour, for 40 minutes each time - spiked the server, we had about 10000 files on that host, more info on the mentioned thread above)
2. Turn of module caching for DnnBB (now the forum runs ok)
I’m not sure that these are all of our problems, but with this we solved most of them, and the server is breathing allot easier now!
hope this helps a bit “
I have pasted this here so that:
a) People googling can find it (I know I’ve spent some time searching the internet)
b) So that I can reference it in my answers to the forums

Leave a Reply