应用挂了~

应用挂了~,第1张

应用挂了~ 应用挂了

android如何分析进程被杀问题


Crash tagNum关键字参数说明简要说明30039am_crash(User|1|5),(PID|1|5),(Process Name|3),(Flags|1|5),(Exception|3),(Message|3),(File|3),(Line|1|5)# Unhandled exception ANR tagNum关键字参数说明简要说明30008am_anr(User|1|5),(pid|1|5),(Package Name|3),(Flags|1|5),(reason|3)# Application Not Responding
am_proc_died tagNum关键字参数说明简要说明30011am_proc_died(User|1|5),(PID|1|5),(Process Name|3),(OomAdj|1|5),(ProcState|1|5)# Application process died30023am_kill(User|1|5),(PID|1|5),(Process Name|3),(OomAdj|1|5),(Reason|3)# Kill a process to reclaim memory.
frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java
frameworks/base/services/core/java/com/android/server/am/ProcessRecord.java
frameworks/base/core/java/android/app/ApplicationExitInfo.java

  • 上面是明显的crash、anr,相关ApplicationExitInfo.REASON_ANR、ApplicationExitInfo.REASON_CRASH
  • 有时只有am_proc_died和wm_finish_activity

案例 crashanr 低内存查杀(LowMemoryKiller) CPU占用率过高
am_kill : [0,22157,com.ximalaya.ting.android,900,excessive cpu 16720 during 300044 dur=2221553 limit=2]
ActivityManager: Killing 22157:com.ximalaya.ting.android/u0a239 (adj 900): excessive cpu 16720 during 300044 dur=2221553 limit=2
Zygote : Process 22157 exited due to signal 9 (Killed)
进程自己退出 正常查杀 installPackageLI/ deletePackageX等查杀关联进程 Signal 9自杀
09-07 16:53:03.027 1000 2566 2582 I Process : Sending signal. PID: 2566 SIG: 9
09-07 16:53:03.154 root 681 681 I Zygote : Process 2566 exited due to signal 9 (Killed)
09-07 16:53:03.167 1000 1734 4006 I ActivityManager: Process com.android.systemui (pid 2566) has died: pers PER

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4828673.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-10
下一篇 2022-11-10

发表评论

登录后才能评论

评论列表(0条)

保存