|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET System.OutOfMemoryExceptionI am using Windows 2003 X86 server, which is a multiprocessor computer.
..Net 3.5 + SP1 I am getting System.OutOfMemoryException error. It seemed GC seldom release memory of w3wp.exe. Sometimes there was System.OutOfMemoryException error. Currently I set w3wp.exe recycling when memory reachs 1000M. It will be recycled everyday which I don't want. I followed http://support.microsoft.com/kb/911716/en-us/ to set <gcServer enabled="false"/>. But I don't want to this which will decrease the GC performance. How to resolve this? -Plu
Show quote
Hide quote
"Pei Lu" <htinns@noemail.noemail> wrote in Not enough information to tell. The fact the GC does not collect memorynews:O3fbuU$8JHA.4560@TK2MSFTNGP03.phx.gbl: > I am using Windows 2003 X86 server, which is a multiprocessor > computer. .Net 3.5 + SP1 > > I am getting System.OutOfMemoryException error. > It seemed GC seldom release memory of w3wp.exe. > Sometimes there was System.OutOfMemoryException error. > > Currently I set w3wp.exe recycling when memory reachs 1000M. > It will be recycled everyday which I don't want. > > I followed http://support.microsoft.com/kb/911716/en-us/ > to set <gcServer enabled="false"/>. But I don't want to this which > will decrease the GC performance. > > How to resolve this? is not an issue, in normal operations at least. Unless you are using non-managed resources, you should not have to worry about the memory. If you are using COM based components or windows internals, however, you should be properly disposing of them, as they can lead to an out of memory error. With the infomrmation here, I am not sure what is causing your server to run out of memory, however. -- Show quoteHide quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ******************************************* | Think outside the box! | ******************************************* Hi Pei,
>I followed http://support.microsoft.com/kb/911716/en-us/ To solve this problem the most efficient way is to increase physical memory >to set <gcServer enabled="false"/>. But I don't want to this which will >decrease the GC performance. >How to resolve this? of your server (and you'd better use x64 machines as server), which however, will sacrifice your money. If you use the option mentioned in the KB article you have to sacrifice the performance. The problem in this case is, low physical memory becomes the bottleneck of your multiprocessor computer. I think we have to find a balance between money and performance sometimes. It's up to you to make the decision. Regards, Allen Chen Microsoft Online Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msd***@microsoft.com. ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications. Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Hi Pei,
>I followed http://support.microsoft.com/kb/911716/en-us/ Have you resolved this issue?>to set <gcServer enabled="false"/>. But I don't want to this which will >decrease the GC performance. >How to resolve this? Regards, Allen Chen Microsoft Online Support Hi Allen,
No, we did not resolve this issue and this issue happened more offen recently. The error appeared even when we set the application pool to recycle when it reach 1000M. Could you tell us any monitor tool to diagnose this issue? Wei Lu Show quoteHide quote "Allen Chen [MSFT]" <all***@online.microsoft.com> wrote in message news:1mbrpVI#JHA.876@TK2MSFTNGHUB02.phx.gbl... > Hi Pei, > >>I followed http://support.microsoft.com/kb/911716/en-us/ >>to set <gcServer enabled="false"/>. But I don't want to this which will >>decrease the GC performance. > >>How to resolve this? > > Have you resolved this issue? > > Regards, > Allen Chen > Microsoft Online Support > Hi Wei,
>Could you tell us any monitor tool to diagnose this issue? You can get a dump and use WinDbg to analyze the dump. In this way you can see what occupies most heap memory, which might be root cause of this issue. Please refer to the following article for more details: http://www.eggheadcafe.com/articles/20060114.asp Regards, Allen Chen Microsoft Online Support
Other interesting topics
Custom ContentPlaceHolder
False Positives From String Comparison using string.Equals() Close web form from code-behind GetFiles, Delete Request.ServerVariables and master page MSDN help for MVC Initial class name for Default page is _Default instead of Default Does "Launching..." mean something different then using NavigateUrl?? AJAX and RegisterStartupScript Customizing WizardStep |
|||||||||||||||||||||||