当前位置:网站首页>App hangs~
App hangs~
2022-06-23 05:18:00 【xhBruce】
The app hangs
android How to analyze process killing
Crash
| tagNum | keyword | Parameter description | Brief description |
|---|---|---|---|
| 30039 | am_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 | keyword | Parameter description | Brief description |
|---|---|---|---|
| 30008 | am_anr | (User|1|5),(pid|1|5),(Package Name|3),(Flags|1|5),(reason|3) | # Application Not Responding |
am_proc_died
| tagNum | keyword | Parameter description | Brief description |
|---|---|---|---|
| 30011 | am_proc_died | (User|1|5),(PID|1|5),(Process Name|3),(OomAdj|1|5),(ProcState|1|5) | # Application process died |
| 30023 | am_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


- The above is obvious crash、anr, relevant
ApplicationExitInfo.REASON_ANR、ApplicationExitInfo.REASON_CRASH
- Sometimes it's just
am_proc_diedandwm_finish_activity
Case study
crash\anr
Low memory killing (LowMemoryKiller)
CPU High occupancy
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)
The process exits itself
Normal killing
installPackageLI/ deletePackageX And so on
Signal 9 commit suicide
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
边栏推荐
猜你喜欢
随机推荐
Drama asking Huamen restaurant Weng
硬核,成为高素质测试人员:学会和产品沟通需求
Master shell, one article is enough!
STP summary
Raspberry pie network remote access
BGP summary of hcip operation
SwiftUI 2.0 课程笔记 Chapter 4
servlet自学笔记
强推,软件测试快速入门,一看就会
OSPF分流实验
PRCS-1016 : Failed to resolve Single Client Access Name
8 years' experience: monthly salary of 3000 to 30000, the change of Test Engineer
In unity, how to read and write a scriptableobject object in editor and runtime
[C language] keyword
When SBAS encounters rtklib
戏问花门酒家翁
Servlet self study notes
618 how to break through the siege? Haier Zhijia: do a good job in digitalization of users
MVC三层架构
Sift特征点提取



![[MAC] there is no source option in security and privacy](/img/ec/6a7bc7689346378c6ed0dc644f709a.png)





