System.OutOfMemoryException由于ASP.NET辅助进程 [英] System.OutOfMemoryException due to asp.net worker process
问题描述
如果两个aspnet_wp.exe进程正在Web服务器中运行是否正常?这里发生的事情是其中一个过程逐渐消耗了太多内存.最终,当我尝试访问该网站时,我收到System.OutOfMemoryException.
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.
有什么想法吗?
推荐答案
应用程序出现内存不足的原因有很多,其中许多原因都无法通过任务管理器,进程监视器或性能来发现监视器.
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)撰写了许多有关如何解决此类问题的文章:
Tess Ferrandez has a great series of articles on how to get to the bottom of such problems:
还有一系列不错的教程,可帮助您开始使用ADPlus,WinDBG和SOS:
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
这篇关于System.OutOfMemoryException由于ASP.NET辅助进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!