eg: 08-19 10:06:55.302 1000 1699 12137 I am_proc_died: [0,9307,com.quark.browser,905,11]
如上栗子:时间点为08-19 10:06:55.302 (搜索时可自行减几毫秒,否则可能搜索不到同时间点的其他log),进程pid为9307
代表:手机cache 内存为718372kb,低于oom_adj 900这个级别的最低值765000kB,所以lmkd会查杀pid为9307的com.quark.browser进程,该进程当前的adj为905(高于900),释放了69048kb
代表:am_low_memory 后面的数字代表当前系统中lru 中进程的数量,数字递减代表有进程被杀,has died 代表非AMS查杀(lmk查杀或信号查杀),hvy HVY代表进程的优先级(进程自查一览表)
log中搜索 dumpsys meminfo,赋值粘贴如下信息到jira上
代表如下:
手机总可用内存为5,510,720K
Free的cache 内存为31,027K cached pss
主要使用的是 5,483,142K
丢失内存:266,644K 这个值过大不正常
08-03 15:10:02.933 1000 1303 12534 I ActivityManager: Force stopping com.eg.android.AlipayGphone appid=10198 user=0: start instr
08-03 15:10:02.933 1000 1303 12534 I ActivityManager: Killing 1441:com.kugou.android/u0a219 (adj 0): stop com.eg.android.AlipayGphone: start instr
08-13 10:17:04.053 root 689 689 I Zygote : Process 29263 exited cleanly (0)
08-13 10:17:04.056 1000 1692 1805 I libprocessgroup: Successfully killed process cgroup uid 10252 pid 29263 in 122ms
08-13 10:17:03.933 1000 1692 5189 I ActivityManager: Process com.tencent.tmgp.pubgmhd (pid 29263) has died: hvy HVY
设备处于两次idle之间低内存状态持续时间超1/3,会查杀内存增长较高的进程,原生策略。
08-14 09:43:55.617 1000 1477 1779 I am_wtf : [0,1477,system_server,-1,ActivityManager,Killcom.tencent.mm in idle maint: pss=365677, swapPss=174343, initialPss=173858, period=+1h17m4s218ms, lowRamPeriod=+1h8m19s250ms]
08-14 09:43:55.625 1000 1477 1477 I am_kill : [0,17579,com.byai.crm,100,idle maint (pss 165820 from 95133)]
08-14 09:43:55.772 1041 664 31875 I [30200] : 17579&10168&0&-1
08-14 09:43:55.724 1000 1477 1514 I am_proc_died: [0,17579,com.byai.crm,100,4]
只要是forceStopPackage接口查杀就有可能查杀到关联的进程,如下拨号就是因为与gms关联被杀
08-10 15:59:30.827 1000 1700 1812 I ActivityManager: Force stopping com.google.android.gms appid=10190 user=-1: installPackageLI
08-10 15:59:30.984 1000 1700 1812 I ActivityManager: Killing 3876:com.google.android.dialer/u0a180 (adj -700): stop com.google.android.gms: installPackageLI
09-06 18:07:44.445 1000 1651 1798 I am_kill : [0,22157,com.ximalaya.ting.android,900,excessive cpu 16720 during 300044 dur=2221553 limit=2]
09-06 18:07:44.445 1000 1651 1798 I ActivityManager: Killing 22157:com.ximalaya.ting.android/u0a239 (adj 900): excessive cpu 16720 during 300044 dur=2221553 limit=2
09-06 18:07:44.566 root 681 681 I Zygote : Process 22157 exited due to signal 9 (Killed)
上次adj降为Service以下到现在经历2221553 ms,cpu POWER_CHECK_MAX_CPU_4 = 2, 两次检测时间间隔为300044 ms,使用cpu时间为16720ms,超过2%
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
06-21 18:06:55.108 10261 12675 12675 I Process : Process is going to kill itself!
06-21 18:06:55.108 10261 12675 12675 I Process : java.lang.Exception
06-21 18:06:55.108 10261 12675 12675 I Process : at android.os.Process.killProcess(Process.java:1350)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:183)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.dragon.read.app.y$1.uncaughtException(SourceFile:33816621)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.crash.i.a.d(SourceFile:33751057)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.crash.i.a.b(SourceFile:34079314)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.crash.i.a.uncaughtException(SourceFile:33619968)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.platform.godzilla.common.d.a(SourceFile:33685510)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.platform.godzilla.common.d.uncaughtException(SourceFile:33882169)
06-21 18:06:55.108 10261 12675 12675 I Process : at org.chromium.base.JavaExceptionReporter.uncaughtException(chromium-TrichromeWebViewGoogle6432.apk-stable-567252434:17)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.n.n.el.n.u(Unknown Source:166)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.n.n.el.n.uncaughtException(Unknown Source:115)
06-21 18:06:55.108 10261 12675 12675 I Process : at com.bytedance.sdk.openadsdk.core.e.y.uncaughtException(Unknown Source:103)
06-21 18:06:55.108 10261 12675 12675 I Process : at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071)
06-21 18:06:55.108 10261 12675 12675 I Process : at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066)
06-21 18:06:55.108 10261 12675 12675 I Process : at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)
06-21 18:06:55.108 10261 12675 12675 I Process : Sending signal. PID: 12675 SIG: 9
06-21 18:06:55.241 1000 1965 3017 I ActivityManager: Process com.dragon.read (pid 12675) has died: fg TOP
06-21 18:06:55.242 1000 1965 3017 I am_proc_died: [0,12675,com.dragon.read,0,2]
03-25 19:34:10.498 26589 29585 I ActivityManager: Killing 14459:com.xiaomi.misubscreenui/1000 (adj 0): stop com.xiaomi.misubscreenui due to from process:com.miui.voiceassist