公司TV 有一项重要指标就是 压力测试
top -m -d 10 -b> top.log
top m 参数可以很好的观察各个进程再压力测试过程中的变化
-d 是间隔秒数
-b 写入文件
oom 给你只处理 进程名 search 他 如果DIRTY 是直线上升 一般就代表有内存泄露
PID VSZ^VSZRW RSS (SHR) DIRTY (SHR) STACK COMMAND
Line 296: 9959 181m 75824 15616 13212 3916 1592 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 333: 9959 181m 75956 15948 13496 3964 1596 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 370: 9959 181m 75956 15948 13496 3964 1596 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 407: 9959 181m 75956 15964 13504 3976 1600 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 442: 9959 195m 89124 23228 15896 9012 1872 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 479: 9959 204m 98244 27696 15812 13280 1640 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server –type=zygote–enable-logging=log_to_sita –no-sandbox
Line 515: 9959 212m 98.9m 36384 18668 18436 1944 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server –type=zygote–enable-logging=log_to_sita –no-sandbox
Line 552: 9959 216m 102m 40044 18684 21152 1692 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 589: 9959 218m 103m 42428 18748 22620 1688 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 626: 9959 234m 119m 51364 19384 31128 2240 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 663: 9959 263m 142m 54636 18864 34204 1704 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 700: 9959 264m 142m 57288 19960 36628 2764 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 737: 9959 267m 145m 58848 18920 38080 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 774: 9959 268m 149m 58864 18928 37956 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 811: 9959 268m 149m 59420 18928 38512 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 848: 9959 270m 152m 59760 18928 38804 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 885: 9959 270m 152m 61332 18928 40348 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 922: 9959 271m 153m 61804 18956 40748 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 959: 9959 271m 153m 64392 18976 42820 1708 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 995: 9959 289m 168m 66948 19532 44992 2256 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1032: 9959 291m 169m 68308 19256 46312 1976 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1069: 9959 294m 172m 70764 65648 48708 48112 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server –type=zygote–enable-logging=log_to_sita –no-sandbox
Line 1106: 9959 295m 173m 72416 19044 50360 1728 256 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1143: 9959 298m 176m 74708 19048 52632 1724 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1180: 9959 307m 189m 76620 19124 54424 1796 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server –type=zygote–enable-logging=log_to_sita –no-sandbox
Line 1217: 9959 314m 196m 84352 20352 62156 3036 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1254: 9959 319m 202m 88928 19516 66844 2252 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1290: 9959 322m 204m 91372 19016 69260 1744 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox
Line 1326: 9959 352m 234m 106m 5772 102m 1748 128 {render-WebLaunc} /system/tbrowser2/weblauncher_server–type=zygote –enable-logging=log_to_sita –no-sandbox