I am running DNN version 04.08.03 and I keep getting "System.OutOfMemoryException" on low traffic portals. When this happens, the entire portal is down, but other portals on the same DNN install work fine. The higher traffic portals don't seem to have this issue.
If I go to Host > Host Settings, then click "Restart Application", the portal begins to work again, but will have the same error after a random period of time.
I know lack of RAM can cause this error, but when I check the RAM usage, that doesn't seem to be the problem. I've also increased the size of the page file, and reduced the caching level of DNN, and both didn't have any effect on the frequency of the errors.
Here is the stack trace of the error:
Stack trace: at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
Any help to fix this problem would be greatly appreciated.