System.outofmemory.exceptio

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/2/2009 4:26:01 AM
Gravatar
Total Posts 88

System.outofmemory.exceptio

Hi Joe,

My site keeps going down intermittently with the following error:

Server Error in '/' Application.
Exception of type 'System.OutOfMemoryException' was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Exception of type 'System.OutOfMemoryException' was thrown.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8805010
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304

[HttpException (0x80004005): Exception of type 'System.OutOfMemoryException' was thrown.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Exception of type 'System.OutOfMemoryException' was thrown.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8886319
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
 

Do you have any suggestions what might be causing this? This is happening since I upgraded to 2.2.8.1 and as you know I have commented out parts of the <handlers> section of the web.config file..

thks, and happy new year!

Leah

1/2/2009 5:59:08 AM
Gravatar
Total Posts 18439

Re: System.outofmemory.exceptio

Hi Leah,

While the onset of this may coincide with an upgrade, I do not believe it indicates a bug in mojoPortal. I would report this problem to your host. I am very confident that mojoPortal is neither leaking memory nor consuming an inordinent amount of memory. On shared hosting its more likely that resources are spread too thin for all the sites on the machine.

Hosting companies pack a lot of sites onto a server and resources can become scarce if the machine is overloaded with sites or if even one rogue site with a memory leak on the server starts consuming too much memory it can cause errors like this. So I think its just a matter of not enough memory is available at some times and your host should address this by making more memory available or not packing so many sites on each server. I would contact your host and let them know that you are having this problem on a regular basis.

Of course my mind is open to the possibility of a mojoPortal issue if your host were to come back with a convincing analysis of the problem or if I were getting multiple reports of this problem from different sources. But I monitor several sites very closely and am not seeing any problems with mojoPortal memory consumption nor differences in average consumption across versions.

Hope it helps,

Joe

1/2/2009 6:06:51 AM
Gravatar
Total Posts 88

Re: System.outofmemory.exceptio

Thanks Joe. You are probably right about my host, webhostforasp.net. I have had no end of problems with them and their support is poor, slow and often pretty much non-existent. This morning following the latest problems I've actually initiated a move to 3essentials.com, hopefully they'll be a bit better, even a small improvement would be welcome. Will let you know if I get the same problems on the new server..

Leah

1/2/2009 6:27:19 AM
Gravatar
Total Posts 18439

Re: System.outofmemory.exceptio

A few years ago I used webhostforasp and they were pretty good and had decent response times. Sorry to hear they are not doing as well these days.

Once I get the new comment system built I will add a comments section to our hosting list so that we can aggregate feedback about various hosts and be better able to make informed recommendations about specific hosts.

DiscountASP also had decent quality of service when I used them though in my experience there were times when my sites went down for periods ranging from 30 minutes to 2 hours and even their sites were down and they never even acknowledged that there was any problem. It only happened once or twice a year though so I didn't make a big stink about it.

I've also been involved with a busy site running at CrystalTech and its had very good uptime and stability. They enforce medium trust by default but if you request it they will move your site to a full trust server. They seem a little more pricey though, but generally I think you get what you pay for and going for the very cheapest hosting is usually not the best idea at least for a site that is important to you.

I don't know anything about 3essentials.com, but I wouldn't hold that against them as there are lots of hosting providers and I'm only familiar with a few of them.

Best,

Joe

1/7/2009 3:34:52 AM
Gravatar
Total Posts 88

Re: System.outofmemory.exceptio

Thought I'd give a quick update on my new host as it might be useful for other people too. I've signed up with 3essentials.com and they've been very good. Got Mojoportal v2.2.8.1 up and running in no time, and they're very fast in responding to support tickets, and most importantly, their responses are very helpful. Very refreshing experience after my problems with webhostforasp.net....

Leah

You must sign in to post in the forums. This thread is closed to new posts.