We have several DotNetNuke sites running and have noticed some peculiar behavior over the past few months.
Very frequently (especially during the day), we will see instances in our DNN Log where the appliation simply starts up. While at first we had thought it was simply the application shutting down and restarting due to inactiviy (typical ASP.NET configurations), we found many instances where there was no log of the application_shutdown process, ONLY an application_start process in the log.
So, I did some digging on MSDN and found that ASP.NET can be configured (in “maching.config”) to force the App Worker process (ASPNET “aspnet_wp.exe” on win2k, NETORK SERVICE “w3wp.exe” on w2k3) to start a NEW process under certain conditions (such as certain amount of memory, cpu utilization, etc.). These parameters are located in the “processModel” node of the “machine config”:
requestQueueLimit, memoryLimit, and shutdownTimeout.
My question is this: Can you tell us if the “processModel” is enabled on our Windows WebServers? And, if so, what are the parameters (above) configured as?
The reason I as is because if the requestQueueLimit, memoryLimit, and shutdownTimeout parameters are set very low, our applications will continue to restart (losing application data, session data, etc.) throughout our customer’s browsing experience.
If these parameters are NOT configured on our WinServers, then is it possible that a (or some) applications are causing an “ungraceful” shutdown of the IIS worker processes throughout the day?
Second question: How are the virtual directories (domains) isolation levels set? Are all virtual directories set to share worker processes? Or, are each set to “High (isolated)” worker process? (i.e. is each virtual directory running it’s own aspnet_wp.exe (or on w2k3: w3wp.exe) process?
If we are all sharing the same IIS worker process, then if someone’s application causes an “ungraceful” shutdown of the worker process, it will cause a shutdown of ALL AppDomains on the server… This could be what is causing what I see in my logs…
Any thoughts Stephen or others?
Thanks.