How to detect memory leak

前端 未结 3 1379
[愿得一人]
[愿得一人] 2021-02-04 16:06

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

相关标签:
3条回答
  • 2021-02-04 16:37

    You can have a look at the following links regarding how to avoid memory-leaks:

    • http://android-developers.blogspot.co.uk/2009/01/avoiding-memory-leaks.html
    • http://www.ibm.com/developerworks/java/library/j-leaks/
    • http://www.mindfiresolutions.com/How-to-avoid-Memory-leak-issue-in-Java-1001.php
    0 讨论(0)
  • 2021-02-04 16:39

    This might be useful.

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

    0 讨论(0)
  • 2021-02-04 16:43

    You don't need a memory leak to get an OutOfMemoryError, simply using too much memory in your app will cause it.

    0 讨论(0)
提交回复
热议问题