kyi12321
kyi12321

Reputation: 50

System.OutOfMemoryException due to asp.net worker process

Is it normal if two aspnet_wp.exe process are running in web server? what happened here is that one of the process gradually consuming too much memory. eventually i receive System.OutOfMemoryException when i attempt to acess the web site.

any thoughts?

Upvotes: 0

Views: 1429

Answers (1)

Kev
Kev

Reputation: 119806

There could be any number of reasons for your app running out of memory, many of which aren't going to be discovered using task manager, process monitor or performance monitor.

To find out what is truly happening you need to either profile the application using a tool such as Ants Memory Profiler or dig deeper and capture a process dump to analyse in WinDbg + SOS.

Tess Ferrandez has a great series of articles on how to get to the bottom of such problems:

If broken, fix it you should - Memory Issues

There's also a nice series of tutorials to get you started with ADPlus, WinDBG and SOS:

.NET Debugging Demos - Information and setup instructions
.NET Debugging Demos Lab 3: Memory
.NET Debugging Demos Lab 6: Memory Leak
.NET Debugging Demos Lab 7: Memory Leak

Upvotes: 1

Related Questions