[X Style (Pure) Android Development] bright2k:
memory leak?

It seems that there are memory leaks as my phone became very slow and constantly need a reload when switching to apps after a couple of weeks usage, and after a reboot, it's fast again.

I took a look about the `top` results where I didn't find any big differences. I'm using 20711217 version.

before reboot

Tasks: 407 total, 3 running, 398 sleeping, 0 stopped, 1 zombie
Mem: 2586220k total, 2524328k used, 61892k free, 176k buffers
Swap: 0k total, 0k used, 0k free, 470800k cached
600%cpu 16%user 14%nice 26%sys 523%idle 20%iow 2%irq 0%sirq 0%host
PID USER PR NI VIRT RES SHR S %CPU [%MEM] TIME+ ARGS
18480 system 18 -2 3.1G 156M 52M S 4.3 6.1 32:58.67 system_server
18781 u0_a31 10 -10 2.2G 153M 73M S 0.0 6.0 7:21.86 com.android.systemui
11170 u0_a110 10 -10 3.1G 119M 49M S 0.0 4.7 0:00.78 com.chowbus.chowbus
1107 u0_i21 20 0 1.4G 103M 11M S 0.3 4.0 7:54.50 com.android.chrome:sandboxed_process1
20256 u0_a19 20 0 2.1G 97M 40M S 1.6 3.8 6:07.27 com.google.android.gms.persistent
3090 u0_a81 20 0 2.5G 93M 19M S 0.6 3.7 0:16.54 com.tencent.mm
2501 u0_a40 20 0 3.2G 92M 54M S 0.3 3.6 0:01.94 com.google.android.googlequicksearchbox:search
10880 u0_a103 20 0 2.2G 70M 11M S 0.0 2.7 0:08.96 com.estrongs.android.pop
28336 u0_a19 20 0 2.2G 69M 33M S 1.3 2.7 0:18.17 com.google.android.gms
32632 u0_a64 20 0 1.3G 64M 17M S 0.0 2.5 6:26.09 com.android.chrome
2299 u0_a77 20 0 2.1G 64M 32M S 2.0 2.5 0:43.46 com.google.android.gm
20481 u0_a40 20 0 3.0G 64M 17M S 0.0 2.5 0:19.20 com.google.android.googlequicksearchbox
26880 u0_a92 20 0 2.6G 54M 17M S 0.0 2.1 0:26.28 com.chenio.android.mitbbs
898 u0_a66 20 0 2.0G 53M 37M S 0.0 2.0 0:01.98 com.google.android.apps.wallpaper:live_wallpaper
11660 u0_a75 20 0 1.9G 51M 33M S 0.0 2.0 0:00.11 com.google.android.calendar
6622 u0_a116 16 -4 2.2G 48M 8.3M S 0.0 1.9 0:01.71 com.xiaomi.smarthome
1222 u0_a109 20 0 2.3G 47M 13M S 0.0 1.8 0:09.12 com.facebook.katana
29381 u0_a72 20 0 1.2G 47M 5.8M S 0.0 1.8 0:01.33 com.google.android.tts
18767 u0_a99 20 0 2.0G 46M 18M S 0.0 1.8 0:19.76 com.google.android.inputmethod.pinyin
11095 u0_a103 20 0 2.1G 44M 8.4M S 0.0 1.7 0:07.35 .esfm
11348 u0_a18 20 0 1.9G 44M 30M S 0.0 1.7 0:00.17 org.omnirom.omnijaws
11557 u0_a56 20 0 1.9G 43M 27M S 0.0 1.6 0:00.07 com.google.android.apps.nexuslauncher
11407 u0_a2 20 0 1.9G 41M 26M S 0.0 1.6 0:00.14 android.process.acore
11455 u0_a19 20 0 1.9G 40M 26M S 0.6 1.5 0:00.07 com.google.process.gapps
18969 radio 20 0 2.0G 39M 13M S 0.0 1.5 4:10.03 com.android.phone
11686 u0_a3 20 0 1.9G 38M 24M S 0.0 1.4 0:00.11 com.android.providers.calendar
20299 u0_a40 20 0 3.0G 37M 7.9M S 0.0 1.4 9:12.47 com.google.android.googlequicksearchbox:interactor
11726 u0_a58 20 0 1.9G 34M 21M S 0.0 1.3 0:00.01 com.cyanogenmod.lockclock
7487 u0_a76 20 0 1.9G 30M 12M S 0.0 1.1 0:00.33 com.google.android.apps.messaging:rcs
30467 u0_a81 20 0 2.1G 30M 9.1M S 0.0 1.1 0:32.45 com.tencent.mm:push
409 root 20 0 58M 30M 452K S 0.0 1.1 0:47.55 healthd
9075 u0_a95 20 0 2.3G 28M 8.3M S 0.0 1.1 0:01.22 com.microsoft.skydrive
989 u0_a64 20 0 1.2G 28M 8.6M S 0.0 1.1 3:37.83 com.android.chrome:privileged_process0
3232 u0_a116 20 0 2.1G 26M 8.5M S 0.0 1.0 0:00.95 com.xiaomi.smarthome:core
7962 u0_a81 20 0 2.4G 25M 6.9M S 0.0 0.9 0:00.36 com.tencent.mm:support
20355 nfc 20 0 1.9G 25M 8.3M S 0.0 0.9 0:03.02 com.android.nfc
4227 u0_a116 20 0 2.1G 24M 8.7M S 0.0 0.9 0:00.44 com.xiaomi.smarthome:pushservice
24342 u0_a118 20 0 2.1G 24M 7.7M S 0.3 0.9 4:48.43 com.ants360.yicamera:pushservice
26993 u0_a104 20 0 1.1G 23M 7.4M S 0.0 0.9 0:01.48 com.youdao.dict
20189 u0_a35 20 0 1.9G 23M 7.8M S 0.0 0.9 0:02.96 com.google.android.ext.services
508 camera 10 -10 156M 22M 692K S 0.0 0.8 1:54.11 mm-qcamera-daemon
9693 system 20 0 1.9G 22M 8.8M S 0.0 0.8 0:00.08 com.qualcomm.telephony
20367 system 20 0 1.9G 22M 7.9M S 0.0 0.8 0:01.80 com.cyanogenmod.settings.device
9874 radio 20 0 1.9G 21M 8.5M S 0.0 0.8 0:00.02 com.qualcomm.qcrilmsgtunnel
9348 u0_i22 20 0 1.2G 21M 8.2M S 0.0 0.8 0:00.13 com.android.chrome:sandboxed_process2
18752 luetooth 20 0 1.1G 21M 6.1M S 0.0 0.8 8:27.62 com.android.bluetooth
2556 u0_a109 20 0 2.0G 20M 6.9M S 0.0 0.8 0:09.51 com.facebook.katana:notification
18277 root 20 0 2.8G 20M 6.5M S 0.0 0.7 0:05.57 zygote64
1175 u0_a104 20 0 1.1G 20M 7.2M S 0.0 0.7 0:00.18 com.youdao.dict:yddictclip
18907 u0_a0 20 0 1.9G 19M 6.1M S 0.0 0.7 0:00.53 org.cyanogenmod.cmaudio.service
32500 u0_a104 20 0 1.1G 19M 6.3M S 0.0 0.7 0:00.99 com.youdao.dict:core
28299 u0_a60 20 0 1.9G 19M 5.8M S 0.0 0.7 0:00.32 org.cyanogenmod.profiles
20313 u0_a32 20 0 1.9G 19M 5.9M S 0.0 0.7 0:00.51 org.cyanogenmod.weatherservice

after reboot

Tasks: 430 total, 5 running, 418 sleeping, 0 stopped, 1 zombie
Mem: 2586220k total, 2528980k used, 57240k free, 172k buffers
Swap: 0k total, 0k used, 0k free, 497624k cached
600%cpu 23%user 11%nice 78%sys 320%idle 160%iow 4%irq 4%sirq 0%host
PID USER PR NI VIRT RES SHR S %CPU [%MEM] TIME+ ARGS
8092 u0_a81 10 -10 2.6G 164M 86M S 0.0 6.5 0:15.04 com.tencent.mm
9967 u0_i1 20 0 1.4G 135M 46M S 1.3 5.3 0:10.34 com.android.chrome:sandboxed_process0
946 system 18 -2 3.0G 128M 53M S 5.3 5.0 0:58.56 system_server
9936 u0_a64 20 0 1.3G 116M 67M S 1.0 4.5 0:14.85 com.android.chrome
2637 u0_a31 20 0 2.0G 106M 43M S 0.3 4.1 0:08.00 com.android.systemui
4089 u0_a19 20 0 2.1G 99M 47M S 4.0 3.9 0:26.76 com.google.android.gms.persistent
4073 u0_a66 20 0 2.0G 97M 53M S 0.0 3.8 0:00.56 com.google.android.apps.wallpaper:live_wallpaper
4731 u0_a19 20 0 2.2G 96M 43M S 1.3 3.8 0:17.65 com.google.android.gms
4315 u0_a40 20 0 3.0G 90M 50M S 0.0 3.5 0:02.45 com.google.android.googlequicksearchbox
4533 u0_a103 20 0 2.2G 82M 29M S 0.0 3.2 0:26.86 com.estrongs.android.pop
10200 u0_i3 20 0 1.3G 82M 44M S 0.0 3.2 0:03.46 com.android.chrome:sandboxed_process2
4058 u0_a40 20 0 3.1G 78M 43M S 0.0 3.0 0:04.31 com.google.android.googlequicksearchbox:search
9515 u0_a19 20 0 2.1G 69M 33M S 0.0 2.7 0:00.99 com.google.android.gms.unstable
10063 u0_a72 20 0 1.2G 69M 28M S 0.0 2.7 0:03.21 com.google.android.tts
10422 u0_a81 20 0 2.4G 68M 49M S 0.3 2.6 0:01.11 com.tencent.mm:tools
10324 u0_a81 20 0 2.4G 67M 48M S 0.0 2.6 0:01.01 com.tencent.mm:appbrand0
5143 u0_a77 20 0 2.1G 67M 35M S 0.0 2.6 0:08.51 com.google.android.gm
7386 u0_a116 16 -4 2.2G 66M 27M S 0.0 2.6 0:03.56 com.xiaomi.smarthome
10139 u0_i2 20 0 1.2G 66M 40M S 0.0 2.6 0:01.91 com.android.chrome:sandboxed_process1
8143 u0_a103 20 0 2.1G 58M 22M S 38.6 2.2 0:41.66 .esfm
10002 u0_a64 20 0 1.2G 57M 36M S 0.3 2.2 0:02.53 com.android.chrome:privileged_process0
9550 u0_a101 20 0 3.1G 57M 29M S 0.0 2.2 0:00.96 com.google.android.youtube
4706 u0_a109 20 0 2.3G 56M 25M S 0.0 2.2 0:05.61 com.facebook.katana
2853 radio 20 0 1.9G 54M 29M S 2.0 2.1 0:04.15 com.android.phone
4437 u0_a11 20 0 1.9G 53M 28M S 31.3 2.1 0:24.20 android.process.media
9216 u0_a78 20 0 2.0G 53M 30M S 0.0 2.0 0:01.46 com.google.android.inputmethod.latin
4127 u0_a40 20 0 2.9G 51M 24M S 2.0 2.0 0:01.51 com.google.android.googlequicksearchbox:interactor
9414 u0_a67 20 0 2.1G 49M 27M S 0.0 1.9 0:00.71 com.google.android.apps.docs
9369 u0_a76 20 0 1.9G 45M 27M S 0.0 1.7 0:00.80 com.google.android.apps.messaging
2619 u0_a99 20 0 1.9G 44M 26M S 0.0 1.7 0:00.58 com.google.android.inputmethod.pinyin
7714 u0_a25 20 0 1.3G 44M 25M S 0.0 1.7 0:02.23 com.android.vending
5117 u0_a81 20 0 2.1G 43M 24M S 0.0 1.7 0:01.69 com.tencent.mm:push
5770 u0_a76 20 0 1.9G 43M 26M S 0.0 1.7 0:00.55 com.google.android.apps.messaging:rcs
7515 u0_a116 20 0 2.1G 42M 26M S 0.0 1.6 0:00.54 com.xiaomi.smarthome:core
9701 u0_a19 20 0 2.1G 42M 25M S 0.0 1.6 0:00.40 com.google.android.gms.ui
8495 u0_a2 20 0 1.9G 41M 25M S 0.0 1.6 0:00.71 android.process.acore
4181 nfc 20 0 1.9G 41M 24M S 0.0 1.6 0:00.54 com.android.nfc
8544 u0_a81 20 0 2.4G 40M 23M S 0.0 1.6 0:00.80 com.tencent.mm:support
6617 u0_a18 20 0 1.9G 40M 27M S 0.0 1.6 0:00.31 org.omnirom.omnijaws
9813 u0_a37 20 0 1.9G 40M 24M S 0.0 1.5 0:00.30 com.google.android.dialer
8797 u0_a107 20 0 1.9G 40M 25M S 0.0 1.5 0:00.36 com.google.android.apps.gcs
490 root 20 0 2.8G 40M 27M S 0.0 1.5 0:02.79 zygote64
4112 u0_a19 20 0 1.9G 39M 24M S 0.6 1.5 0:04.31 com.google.process.gapps
7587 u0_a104 20 0 1.1G 39M 24M S 0.0 1.5 0:00.87 com.youdao.dict
9241 u0_a56 20 0 1.9G 38M 24M S 0.0 1.5 0:00.15 com.google.android.apps.nexuslauncher
8329 u0_a118 20 0 2.1G 37M 23M S 0.3 1.4 0:00.79 com.ants360.yicamera:pushservice
8652 u0_a3 20 0 1.9G 37M 23M S 0.0 1.4 0:00.27 com.android.providers.calendar
2612 luetooth 20 0 1.1G 37M 24M S 0.0 1.4 0:03.69 com.android.bluetooth
9458 u0_a96 20 0 1.9G 36M 22M S 0.0 1.4 0:00.18 com.google.android.play.games.ui
4197 system 20 0 1.9G 36M 22M S 0.0 1.4 0:00.09 com.cyanogenmod.settings.device
7665 u0_a104 20 0 1.1G 36M 23M S 0.0 1.4 0:00.42 com.youdao.dict:core
8923 u0_a116 20 0 2.1G 36M 21M S 0.0 1.4 0:00.24 com.xiaomi.smarthome:pushservice
5452 u0_a109 20 0 2.0G 35M 23M S 0.0 1.3 0:00.58 com.facebook.katana:notification
9338 u0_a80 20 0 2.0G 34M 22M S 0.0 1.3 0:00.51 com.google.android.instantapps.supervisor
4022 u0_a35 20 0 1.9G 34M 21M S 0.0 1.3 0:00.10 com.google.android.ext.services
9851 u0_a60 20 0 1.9G 34M 20M S 0.0 1.3 0:00.06 org.cyanogenmod.profiles
2802 u0_a0 20 0 1.9G 34M 21M S 0.0 1.3 0:00.04 org.cyanogenmod.cmaudio.service
6536 system 20 0 1.9G 34M 21M S 0.0 1.3 0:00.06 com.qualcomm.telephony
4142 u0_a32 20 0 1.9G 34M 20M S 0.0 1.3 0:00.04 org.cyanogenmod.weatherservice
6559 radio 20 0 1.9G 33M 21M S 0.0 1.3 0:00.07 com.qualcomm.qcrilmsgtunnel
7697 u0_a104 20 0 1.1G 33M 21M S 0.0 1.3 0:00.27 com.netease.pushservice.core.NetEasePushMessageService_V1
491 root 20 0 2.0G 33M 24M S 0.0 1.3 0:02.40 zygote
4167 system 20 0 1.9G 33M 20M S 0.0 1.2 0:00.03 .dataservices
4271 u0_a65 20 0 1.9G 33M 20M S 0.0 1.2 0:00.03 com.android.smspush
4506 u0_a88 20 0 1.1G 31M 21M S 0.0 1.2 0:00.21 com.aimp.player