description of the phenomenon:monkey--pkg-blacklist-file storage/sdcard0/blacklist.txt --ignore-security-exc
eptions--monitor-native-crashes-s 800-v-v-v --throttle 1427 180000 >sdcard &NB Sp  &NBSP
/monkey.log &NB Sp , &NB Sp
shes-s 800-v-v-v --throttle 1427 180000 >sdcard/monkey.lo G < &NBSP
killed , &NB Sp , &NB sp;
first, search for the keyword monkey in kernel log, and look up the log line that monkey exits as follows:
<4>[2646.721739] (0) [474:audioout_2]awd 8192AWD 8192======low Memory killer=====
<4>[2646.781825] (1) [17854:sh]free memory Other_free: -1147, other_file:3990 pages
<4>[2646.781878] (1) [17854:sh]candidate 1 (init), adj-941, RSS feed, Rswap 109, to kill
<4>[2646.781933] (1) [17854:sh]candidate (UEVENTD), adj-941, RSS, Rswap, to kill
...
<4>[2646.784770] (1) [17854:sh]candidate 17859 (Roviders.global), adj-941, RSS 1452, Rswap 2652, to kill
<4>[2646.784825] (1) [17854:sh]killing ' Commands.monkey ' (7641), adj 0,
<4>[2646.784839] (1) [17854:sh] to free 8504kB on behalf of ' SH ' (17854) because
<4>[2646.784852] (1) [17854:sh] Cache 15960kB is below limit 23552kB for Oom_score_adj 0
<4>[2646.784867] (1) [17854:sh] free memory is-4588kb above reserved [GFP (0xd0)]
<4>[2646.784903] (1) [17854:sh]low memory Info:
<4>[2646.784983] (1) [17854:sh]normal free:3964kb min:2784kb low:7980kb High:8676kB active_ ANON:18352KB inactive_anon:18364kb active_file:6936kb inactive_file:6888kb unevictable:27196kb Isolated (anon): 0kB Isolated (file): 68kB present:485448kb mlocked:25284kb dirty:0kb writeback:40kb mapped:20816kb shmem:11948kb slab_ RECLAIMABLE:18212KB slab_unreclaimable:52360kb kernel_stack:4120kb pagetables:5292kb Unstable:0kB Bounce:0kB WRITEBACK_TMP:0KB pages_scanned:252 all_unreclaimable? No
<4>[2646.785058] (1) [17854:sh]normal:991*4kb 0*8kb 0*16kb 0*32kb 0*64kb 0*128kb 0*256kb 0*512kB 0*1024kB 0*204 8kB 0*4096kb = 3964kB
<4>[2646.785334] (1) [17854:sh]lowmemoryon
<7>[2646.785381]-(1) [17854:sh][17854:sh] Sig 9 to [7641:commands.monkey]
<7>[2646.786094] (0) [7641:commands.monkey][7641:commands.monkey] exit
analysis results: From the above log can be clearly seen that the current monkey is killed because of low memory caused. Monkey exit
The former low memory killer has already started to kill Ram frequently. And you can search for Commands.monkey in log at this time the Adj value is 0 (the smaller the value is the highest priority, the Adj value can be negative, such asthe Oom_adj of the init process is -16)
Android low memory led monkey killed analysis guide