Android 如何查找OOM问题
PHP中文网
PHP中文网 2017-04-17 15:48:26
0
2
578
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
巴扎黑

OOM is caused by memory leaks in the java layer

  1. Use leakcanary detection

  2. First use MAT to obtain the current memory situation of the mobile phone, and then use monkey testing. After observing that the memory of the process continues to increase, use MAT to obtain the new memory situation.
    Compare and analyze the two files to see what objects are held and cause memory leaks.

The first doubt is Bitmap or large array

左手右手慢动作

After AS1.5, there are tools to detect memory leaks, or you can directly use square's leakcanary, which may be more intuitive. After the memory leak is dealt with, it should be much better

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template