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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Increase DNN load-time on busy sites with windows firewallIncrease DNN load-time on busy sites with windows firewall
Previous
 
Next
New Post
7/25/2006 11:38 PM
 

Okay, pet theory for the day (or remainder thereof...)

DNN startup requires worker threads, but if all the incoming users consume all available threads waiting for .net to start up - then during DNN's startup, when it tries to get it's own worker threads, it would sit there and wait for those threads to become available.  Of course, while it's waiting, .net is still sitting in the app start event, thus the worker threads holding the user requests,slowly start to die off, and then finally, dnn gets started.  I foggily recall somewhere that in the system machine.config you set the max threads per worker .. hmmm.  I need more coffee before starting to glare through that msdn doc...

That would be an area I would look at to see if there is contention.  Keep in mind that each incoming request is a thread.  if .NET is starting, it's going use alot of them quickly if your server is busy.

 
New Post
7/26/2006 12:45 AM
 
I like this theory!  I think you're onto something here.  I'm going to examine this a bit closer later this week, myself.


Shane Miller
Call Centers 24x7
 
New Post
7/26/2006 1:16 AM
 

 

I've been working with Tim on this off and on for a few weeks.  We increased his maxWorkerThreads to 100 (the default is 20) a while back.  It helped a little with keeping his site running longer, but not with startup times.

Here's a good link for that stuff:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt17.asp

My theory is that there is so much cache to load for DNN when his app starts that there just isn't enough CPU to get it done, and there is probably some contention also when several of his portals try to load simultaneously.  His server is definately processor bound during startup though, especially if traffic is allowed to get to it.

Did you know that when the app is loading that each Language .resx file that a new XML Document is created and transferred to a hashtable for each one, then placed into cache?  This can 10 or so .resx files per page.  Now imagine several different pages starting at the same time, plus loading the cache for portal settings and tab settings.

By the way, I have seen on a couple of installs where turning off caching totally brings the server to it's knees, and the application ends up recycling over and over because it's in a deadlocked state, so don't try that unless you can get at the database and put it back.

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/26/2006 11:03 AM
 

Not sure what version of windows you have but if you wish to script the on/off of windows firewall you simply need to set it’s service to start manually. This is done by going to your management console and selecting services then go down to Windows Firewall/Internet Connection Sharing (ICS) and opening the properties of this service. If you look at the top of the general tab you will see Service Name: SharedAccess This is the name of the service you would call in your script/command line.

 

C:\>net start “SharedAccess”

C:\>net stop “SharedAccess”

 

Will start and stop the service from a command prompt. If you can write a script/VB app that can shell the command prompt call the net start command and wait for a few sec then shell your default .net page and wait till it is loaded then call the net stop command you should be all set.

 

I do however agree this does not fix the underlying problem, which I have no idea what is. If this is not what you were talking about please let me know and perhaps I can help figure it out.

 

 
New Post
7/26/2006 7:25 PM
 
njohnson wrote

C:\>net start “SharedAccess”

C:\>net stop “SharedAccess”



Thanks for the idea as well as the "out of box" thinking!  The issue is that I don't want to stop or start the windows firewall, I simply want to enable/disable a firewall exception.  My OP had a link to the Windows ICS API to do this, however, I'm not well versed enough to pick up on it and write an little program without spending a ton of time trying to think of how.  Right now, I'm spending a ton of time trying to figure it out but have no such luck yet.   Check out the URL, who knows...  :)
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Increase DNN load-time on busy sites with windows firewallIncrease DNN load-time on busy sites with windows firewall


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