Home All Groups Group Topic Archive Search About

ASP.NET System.OutOfMemoryException

Author
23 Jun 2009 11:24 AM
Pei Lu
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?

-Plu

Author
23 Jun 2009 8:18 PM
Gregory A. Beamer
Show quote Hide quote
"Pei Lu" <htinns@noemail.noemail> wrote in
news: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?


Not enough information to tell. The fact the GC does not collect memory
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.



--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
Show quoteHide quote
|      Think outside the box!             |
*******************************************
Are all your drivers up to date? click for free checkup

Author
24 Jun 2009 2:50 AM
Allen Chen [MSFT]
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?

To solve this problem the most efficient way is to increase physical memory
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.
Author
29 Jun 2009 6:46 AM
Allen Chen [MSFT]
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
Author
1 Jul 2009 6:58 AM
Wei Lu
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
>
Author
1 Jul 2009 9:11 AM
Allen Chen [MSFT]
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
Author
7 Jul 2009 6:42 AM
Allen Chen [MSFT]
Hi Wei,

>Could you tell us any monitor tool to diagnose this issue?

Have you solved this issue?

Regards,
Allen Chen
Microsoft Online Support

Bookmark and Share