如何检测,其中一个内存泄漏? [英] How to detect where a Memory Leak is?

查看:125
本文介绍了如何检测,其中一个内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大的网站,这似乎是吸干所有正在分配的内存。没有什么别的网站旁边的服务器上。一个星期之内就吞噬了2演出,并需要重新启动。目前,这是Server 2008中使用IIS 7,我们正在重新安装使用64位,并添加更多的内存32位。这将是很好能够追查其中泄漏发生。

I have a large website that seems to be sucking up all the memory that is being allocated. There is nothing else on the server beside this site. Within a week it eats away the 2 gigs and requires a restart. Currently this is server 2008 32 bit using IIS 7. We are reinstalling to use 64bit and add more memory. It would be nice to be able to track down where the leaks are occurring.

那么,什么是要跟踪内存泄漏的最佳实践?

So what is the best practice to tracking memory leaks?

推荐答案

在你的code运行探查。

Run a profiler on your code.

下面是两个很好的选择:

Here are two good options:

展鹏的内存分析器

Jetbrains的dotTrace

我相信这两种产品都有免费试用版。

I believe both products have a free trial.

这篇关于如何检测,其中一个内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆