ASP.NET System.OutOfMemoryException

P

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
 
A

Alexey Smirnov

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 followedhttp://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

It may happen due to any number of things, for example, because of
memory leaks

Check also this
http://support.microsoft.com/kb/820108
 
G

Gregory A. Beamer

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

*******************************************
| Think outside the box! |
*******************************************
 
A

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:
(e-mail address removed).

==================================================
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.
 
W

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top