名词解释

错误定位详解


    1)错误定位:

       Process com.eims.tjxl_andorid died.(com.eims.tjxl_andorid/.ui.home.SearchActivity,proc died without state saved)[NOT_ENOUGH_RAM:false, LOW_MEMORY:true, TESTIN_AGENT_DIED:false]

    2)闪退时内存使用情况

       Memory usage[Total:988160KB, Avalable:351016KB, com.eims.tjxl_andorid(9176) used:31805KB]

    3)系统内存不足时,Android 系统释放原则(共两项指标,本数据为其中一项重要指标:minfree)

       LowMemoryKiller threshhold[Foreground:49152KB, Visible:61440KB, Secondary Server:73728KB,Hidden:86016KB,Content Provider:98304KB,Empty:122880KB]



Process x.xx.xxx died:

    1)NOT_ENOUGH_RAM:是否终端内存不足。true 终端内存不足(可认为终端内存不足,app被kill) ;false 非终端内存不足

            计算公式Memory usage(Avalable)<=LowMemoryKiller threshhold(Empty+50MB)。

    2)LOW_MEMORY:Testin Service 是否收到系统onLowMemory信号。true 已收到(可认为终端内存不足,app被kill);false 未收到

    3)TESTIN_AGENT_DIED:Testin Service 是否被系统kill掉。true 已被kill(可认为终端内存不足,app被kill);false 未被kill

    例如:

            场景1闪退原因:应用可能内存溢出(终端有充足的可用内存)

            Process com.babyjoy.park died.(com.babyjoy.park/org.cocos2dx.cpp.AppActivity,proc died without state saved)[NOT_ENOUGH_RAM:false, LOW_MEMORY:false, TESTIN_AGENT_DIED:false]

            Memory usage[Total:485376KB, Avalable:139180KB, com.babyjoy.park(5008) used:37340KB] 

            Died reason : App maybe have memory leak(Device have enough ram).

            场景2闪退原因:终端可用内存不足,请尝试优化app内存使用。

            Process com.cantong.wozhua died.(Unkown,Unkown)[NOT_ENOUGH_RAM:false, LOW_MEMORY:true, TESTIN_AGENT_DIED:false]

            Memory usage[Total:827392KB, Avalable:482940KB, com.cantong.wozhua(30390) used:47263KB]

            Died reason : Device have not enough ram,Please optimize APP memory usage.


Memory usage

    1)Total:终端总内存。单位KB

    2)Avalable:崩溃前终端可用内存。单位KB

    3)used:崩溃前被测app占用内存情况。单位KB

 

LowMemoryKiller threshhold

    1)Foreground:前台进程

    2)Visible:可见进程

    3)Secondary Server:次要服务

    4)Hidden:隐藏进程

    5)Content Provider:内容供应节点

    6)Empty:空进程