HighTechTalks DotNet Forums  

System.OutOfMemoryException in asp.net web application

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss System.OutOfMemoryException in asp.net web application in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
jiten
 
Posts: n/a

Default System.OutOfMemoryException in asp.net web application - 10-09-2007 , 09:45 AM






Hi,

We are getting System.OutOfMemoryException exception in an asp.net
application hosted on IIS.
The problem is popping up randomly once every few days.The web server needs
to be restarted as users keep on getting 'Server Application Unavailable'
otherwise.

Could anyone please tell abt the possible causes and solution for this.

Cheers,
Jiten




Reply With Quote
  #2  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: System.OutOfMemoryException in asp.net web application - 10-09-2007 , 10:05 AM






Ohboy... it could be due to any number of things, without knowing more about
your app it would be very hard to tell what is wrong.
You can wire up your app to capture more info on unhandled exceptions, and
you can also use AdPlus in "hang" mode to take a dump of the W3WP.exe or
ASP_NET.EXE process.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com



"jiten" wrote:

Quote:
Hi,

We are getting System.OutOfMemoryException exception in an asp.net
application hosted on IIS.
The problem is popping up randomly once every few days.The web server needs
to be restarted as users keep on getting 'Server Application Unavailable'
otherwise.

Could anyone please tell abt the possible causes and solution for this.

Cheers,
Jiten




Reply With Quote
  #3  
Old   
Eliyahu Goldin
 
Posts: n/a

Default Re: System.OutOfMemoryException in asp.net web application - 10-09-2007 , 10:19 AM



One of the most common culprits is inproc session management. If you store a
lot of data in session variables, consider switching to outproc sessions.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"jiten" <jiten (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

We are getting System.OutOfMemoryException exception in an asp.net
application hosted on IIS.
The problem is popping up randomly once every few days.The web server
needs
to be restarted as users keep on getting 'Server Application Unavailable'
otherwise.

Could anyone please tell abt the possible causes and solution for this.

Cheers,
Jiten






Reply With Quote
  #4  
Old   
bruce barker
 
Posts: n/a

Default Re: System.OutOfMemoryException in asp.net web application - 10-09-2007 , 11:25 AM



there are a couple causes:

1) too large session
2) memory "leak" of unmanaged resources. common if you use com object or
don't manage sql connections
3) faulty caching.

start here: http://msdn2.microsoft.com/en-us/library/ms954591.aspx

-- bruce (sqlwork.com)

jiten wrote:
Quote:
Hi,

We are getting System.OutOfMemoryException exception in an asp.net
application hosted on IIS.
The problem is popping up randomly once every few days.The web server needs
to be restarted as users keep on getting 'Server Application Unavailable'
otherwise.

Could anyone please tell abt the possible causes and solution for this.

Cheers,
Jiten




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.