46

记一次Android内存泄漏的优化经历 - 简书

 5 years ago
source link: https://www.jianshu.com/p/c8e691a69086?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
问题 背景 通过线上收集的日志分析,存在部分OOM的日志,故通过leakcanary进行内存泄漏追踪。 引用链日志 在开发的过程中,leakcanary报出了内存泄漏,详细的日志如下: 并且全局有其他Activity也存在相同引用链的内存泄漏,日志如下: 使用MAT进行分析,引用链也相同,日志如下: 影响 通过AS自带的Profiler进行分析,发现此内存泄漏非常严重,进入多次Activit...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK