System.OutOfMemoryException due to asp.net worker process

依然范特西╮ 提交于 2019-12-24 19:07:17

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/6305172/system-outofmemoryexception-due-to-asp-net-worker-process

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!