Re: Memory increase and hang
- From: erick@xxxxxxxxxxxxx
- Date: Wed, 27 Jul 2005 05:19:54 -0700
You must make sure you understand the GC and how it works... I strongly advise you to have a loot at a few articles:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetgcbasics.asp http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/1100/GCI/TOC.ASP http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/1200/GCI2/TOC.ASP http://blogs.msdn.com/ricom/archive/2005/05/23/421205.aspx
Without looking at the code i would say that you are not disposing of resources or you are caching too much data without releasing it.... but it could be so much more... A very common mistake is that many programmers work against the GC without knowing it... read those articles and reformulate you question as well as posting some code you suspect is holding data or allocating unecessary data.
And about calling GC.Collect, please read http://blogs.msdn.com/ricom/archive/2004/11/29/271829.aspx.
Erick Sgarbi
Hi,
I have an C# application and after about 12 hours it hangs with a .NET Error System.OutOfMemoryException. This error is received after GC.GetTotalMemory: 100038436 and in task manager the used memory is about 130,000k. I used GC.Collect but did not help. Please help. Thanks in advance Dan *** Sent via Developersdex http://www.developersdex.com ***
.
- References:
- Memory increase and hang
- From: Dan Pavel
- Memory increase and hang
- Prev by Date: RRAS
- Next by Date: How do I access a dynamically created PlaceHolder DropDownList control data items....
- Previous by thread: Re: Memory increase and hang
- Next by thread: Re: Memory increase and hang
- Index(es):
Relevant Pages
|