Troubleshoot ASP.net possible memory leak

元气小坏坏 提交于 2019-12-11 05:48:40

问题


It looks like there is a possible memory leak with one of our web applications. w3wp.exe is taking about 1.5gb of RAM and our web services are returning an error saying that it is out of memory. Is there a way to determine which application is causing the excessive memory or profile the actively running websites to see what the cause of the memory issue is?

I would post this on Server Fault, but I am more interested in a way of debugging the application to see where the fault is. I can run the websites locally and w3wp.exe does not take excessive amounts of RAM. These are active websites / web services that are in constant use, so I am assuming that the problem will only show up with excessive load.


回答1:


The Debug Diagnostics Toolkit is designed exactly for this purpose.

There are a fair few articles around on how to use the toolkit:

  • http://support.microsoft.com/kb/919792



回答2:


You could try a copy of Red Gate's Memory Profiler.

Trying to guess the memory leak in your app will take forever. A profiling tool will show you exactly where the problem is without all the pesky trial and error.




回答3:


Watch this episode of dnrTV with Tess Ferrandez for some pointers on using WinDBG and other tools to analyze a memory dump - she makes it look really easy!



来源:https://stackoverflow.com/questions/2006737/troubleshoot-asp-net-possible-memory-leak

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