遇到ANR问题不要慌,大部分情况下可能是系统or测试手段问题,我们按照如下关键字排查定位
1 是否是 heapdump 导致?
使用 hprof: heap dump 关键词过滤,在dump结束之前主线程都会卡住,极大可能造成ANR问题
1.1 dump开始
12-11 22:30:18.761 11404 11404 I gerry.lifecycl: hprof: heap dump "/data/local/tmp/app_heap.hprof" starting...
1.2 dump结束
12-11 22:30:21.052 11404 11404 I gerry.lifecycl: hprof: heap dump completed (27MB) in 2.290s objects 381858 objects with stack traces 0