如何检测内存泄漏 [英] How to detect memory leak

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

问题描述

我在Android中面临与MemoryOutOfBounds异常有关的一些问题。我发现这里有两个原因



(1)创建的线程在任何地方都是活着的,不会被销毁的。

2)内存泄漏。



我们可以在eclipse中检测线程信息。但是,当我执行我的应用程序时,如何知道我的代码内存泄漏的哪一行。 MAT的作用不同。 MAT是静态的。
是否有任何插件或任何方式知道eclipse中的内存泄漏?



感谢
Deepak

解决方案

这可能很有用。



什么Android工具和方法最有效地找到内存/资源泄漏?


I faced some issues related to MemoryOutOfBounds exception in android. I found There are two reasons behind this

(1) Thread created are alive and not destroyed anywhere

(2) Memory leak.

We can detect thread information in eclipse. But how to know at which line of my code memory leak occurs when I execute my application. MAT works differently. MAT is static. Is there any plug-ins or any way to know memory-leak in eclipse?

Thanks Deepak

解决方案

This might be useful.

What Android tools and methods work best to find memory/resource leaks?

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

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