안드로이드 메모리 체크방법
1. adb shell 실행후 dumpsys meminfo 입력
D:\>adb shell
shell@android:/ $ dumpsys meminfo
dumpsys meminfo
Applications Memory Usage (kB):
Uptime: 11664654 Realtime: 19055860
Total PSS by process:
100197 kB: com.lge.launcher2 (pid 1164)
78448 kB: system (pid 738)
33825 kB: com.android.systemui (pid 958)
32099 kB: com.android.phone (pid 1085)
30345 kB: com.facebook.katana (pid 31297)
19820 kB: com.google.process.gapps (pid 4965)
19609 kB: dingdong.life.airlines.cebu (pid 15188)
18429 kB: android.process.acore (pid 16526)
17926 kB: com.dingulHangul.dingulHangulKeyboard_dinki (pid 1063)
15890 kB: com.kakao.talk (pid 3247)
14904 kB: com.android.settings (pid 15841)
13747 kB: com.nhn.android.kin (pid 15263)
13461 kB: com.google.android.youtube (pid 22430)
12536 kB: com.google.android.apps.maps:GoogleLocationService (pid 5077)
12328 kB: com.nhn.nni (pid 13189)
12310 kB: com.google.android.apps.plus (pid 15226)
12257 kB: com.nhn.android.blog (pid 16106)
10622 kB: com.nhn.android.navercafe (pid 16084)
10377 kB: Uxpp.UC (pid 1882)
9393 kB: com.nhn.android.appstore (pid 13279)
9281 kB: com.nhn.android.search (pid 2498)
9277 kB: com.antivirus (pid 2458)
9241 kB: com.nhn.android.webtoon (pid 13228)
9084 kB: com.google.android.googlequicksearchbox (pid 15562)
9055 kB: com.google.android.apps.maps:LocationFriendService (pid 16704)
8647 kB: com.nhn.android.npush (pid 13312)
8455 kB: dingdong.life.airlines.cebu:remote (pid 15514)
8369 kB: com.google.android.apps.maps (pid 6832)
8336 kB: com.nhn.android.calendar (pid 6581)
7764 kB: android.process.media (pid 15121)
7549 kB: com.nhn.android.ndrive (pid 14207)
6932 kB: com.lge.lmk (pid 8206)
6738 kB: com.skt.skaf.Z00000TAPI (pid 907)
6027 kB: com.kth.widgets.uucloud (pid 30552)
5953 kB: com.kt.wifiwidget (pid 13928)
5850 kB: com.ktpns.pa (pid 30466)
5680 kB: com.android.nfc (pid 1149)
5384 kB: com.lge.sizechangable.weather (pid 29927)
4786 kB: com.google.android.talk (pid 16938)
4760 kB: com.lge.systemserver (pid 1095)
4623 kB: com.skt.skaf.A000Z00040 (pid 16071)
4400 kB: com.lge.mlt (pid 17539)
4387 kB: com.google.android.apps.uploader (pid 15152)
4245 kB: com.lge.sizechangable.calendar (pid 17596)
4215 kB: com.nate.android.portalmini (pid 16870)
4134 kB: com.kt.olleh.storefront (pid 15203)
4020 kB: com.lge.lgfotaclient:remote (pid 17474)
3865 kB: com.lge.lgfotaclient (pid 1138)
3795 kB: imoblife.memorybooster.full (pid 10374)
3710 kB: com.lge.sync (pid 15879)
3551 kB: dingdong.life.tv:remote (pid 16234)
3543 kB: com.lge.media.lgpocketphoto (pid 17124)
3416 kB: com.android.providers.calendar (pid 17576)
3371 kB: com.kt.wifisvc (pid 17419)
3346 kB: com.google.android.gsf.login (pid 17655)
3292 kB: com.lge.atservice (pid 1126)
3084 kB: com.lge.osp (pid 15867)
3057 kB: com.lge.appbox.client (pid 16039)
2985 kB: com.kt.serviceagent (pid 17431)
2948 kB: com.kt.wifi (pid 17456)
2516 kB: com.qualcomm.wiper (pid 1869)
2259 kB: dingdong.util.vc (pid 17511)
Total PSS by OOM adjustment:
78448 kB: System
78448 kB: system (pid 738)
83521 kB: Persistent
33825 kB: com.android.systemui (pid 958)
32099 kB: com.android.phone (pid 1085)
5680 kB: com.android.nfc (pid 1149)
4760 kB: com.lge.systemserver (pid 1095)
3865 kB: com.lge.lgfotaclient (pid 1138)
3292 kB: com.lge.atservice (pid 1126)
100197 kB: Foreground
100197 kB: com.lge.launcher2 (pid 1164)
20442 kB: Perceptible
17926 kB: com.dingulHangul.dingulHangulKeyboard_dinki (pid 1063)
2516 kB: com.qualcomm.wiper (pid 1869)
67810 kB: A Services
19820 kB: com.google.process.gapps (pid 4965)
12536 kB: com.google.android.apps.maps:GoogleLocationService (pid
5077)
9277 kB: com.antivirus (pid 2458)
5384 kB: com.lge.sizechangable.weather (pid 29927)
4400 kB: com.lge.mlt (pid 17539)
4020 kB: com.lge.lgfotaclient:remote (pid 17474)
3795 kB: imoblife.memorybooster.full (pid 10374)
3371 kB: com.kt.wifisvc (pid 17419)
2948 kB: com.kt.wifi (pid 17456)
2259 kB: dingdong.util.vc (pid 17511)
148864 kB: B Services
30345 kB: com.facebook.katana (pid 31297)
15890 kB: com.kakao.talk (pid 3247)
12328 kB: com.nhn.nni (pid 13189)
10377 kB: Uxpp.UC (pid 1882)
9393 kB: com.nhn.android.appstore (pid 13279)
8647 kB: com.nhn.android.npush (pid 13312)
8455 kB: dingdong.life.airlines.cebu:remote (pid 15514)
8369 kB: com.google.android.apps.maps (pid 6832)
8336 kB: com.nhn.android.calendar (pid 6581)
7764 kB: android.process.media (pid 15121)
6738 kB: com.skt.skaf.Z00000TAPI (pid 907)
6027 kB: com.kth.widgets.uucloud (pid 30552)
5850 kB: com.ktpns.pa (pid 30466)
3710 kB: com.lge.sync (pid 15879)
3551 kB: dingdong.life.tv:remote (pid 16234)
3084 kB: com.lge.osp (pid 15867)
215171 kB: Background
19609 kB: dingdong.life.airlines.cebu (pid 15188)
18429 kB: android.process.acore (pid 16526)
14904 kB: com.android.settings (pid 15841)
13747 kB: com.nhn.android.kin (pid 15263)
13461 kB: com.google.android.youtube (pid 22430)
12310 kB: com.google.android.apps.plus (pid 15226)
12257 kB: com.nhn.android.blog (pid 16106)
10622 kB: com.nhn.android.navercafe (pid 16084)
9281 kB: com.nhn.android.search (pid 2498)
9241 kB: com.nhn.android.webtoon (pid 13228)
9084 kB: com.google.android.googlequicksearchbox (pid 15562)
9055 kB: com.google.android.apps.maps:LocationFriendService (pid
16704)
7549 kB: com.nhn.android.ndrive (pid 14207)
6932 kB: com.lge.lmk (pid 8206)
5953 kB: com.kt.wifiwidget (pid 13928)
4786 kB: com.google.android.talk (pid 16938)
4623 kB: com.skt.skaf.A000Z00040 (pid 16071)
4387 kB: com.google.android.apps.uploader (pid 15152)
4245 kB: com.lge.sizechangable.calendar (pid 17596)
4215 kB: com.nate.android.portalmini (pid 16870)
4134 kB: com.kt.olleh.storefront (pid 15203)
3543 kB: com.lge.media.lgpocketphoto (pid 17124)
3416 kB: com.android.providers.calendar (pid 17576)
3346 kB: com.google.android.gsf.login (pid 17655)
3057 kB: com.lge.appbox.client (pid 16039)
2985 kB: com.kt.serviceagent (pid 17431)
Total PSS by category:
403872 kB: Dalvik
103569 kB: Unknown
60062 kB: .so mmap
47436 kB: Other mmap
43000 kB: Other dev
38742 kB: .dex mmap
14977 kB: .apk mmap
1660 kB: .ttf mmap
996 kB: Native
91 kB: .jar mmap
44 kB: Cursor
4 kB: Ashmem
Total PSS: 714453 kB
KSM: 0 kB saved from shared 0 kB
0 kB unshared; 0 kB volatile
shell@android:/ $
2. adb shell 실행후 procrank 입력
==> 안되는 경우도 있음.
3. 임의의 앱 메모리 확인 (카카오톡) :
adb shell 실행후
dumpsys meminfo pid값 입력
D:\>adb shell
shell@android:/ $ dumpsys meminfo 3247
dumpsys meminfo 3247
Applications Memory Usage (kB):
Uptime: 12584862 Realtime: 19976068
** MEMINFO in pid 3247 [com.kakao.talk] **
Shared Private Heap Heap Heap
Pss Dirty Dirty Size Alloc Free
------ ------ ------ ------ ------ ------
Native 16 12 16 5444 2897 1878
Dalvik 9088 14628 8820 23239 14671 8568
Cursor 0 0 0
Ashmem 0 0 0
Other dev 4 56 0
.so mmap 910 3416 692
.jar mmap 4 0 0
.apk mmap 373 0 0
.ttf mmap 0 0 0
.dex mmap 1550 0 0
Other mmap 1170 116 924
Unknown 2892 352 2892
TOTAL 16007 18580 13344 28683 17568 10446
Objects
Views: 0 ViewRootImpl: 0
AppContexts: 2 Activities: 0
Assets: 3 AssetManagers: 3
Local Binders: 8 Proxy Binders: 15
Death Recipients: 0
OpenSSL Sockets: 0
SQL
MEMORY_USED: 442
PAGECACHE_OVERFLOW: 323 MALLOC_SIZE: 62
DATABASES
pgsz dbsz Lookaside(b) cache Dbname
4 752 280 139/56/17 /data/data/com.kakao.talk/dat
abases/KakaoTalk.db
shell@android:/ $
'안드로이드 개발 팁' 카테고리의 다른 글
android 개행문자 적용 (네트워크, 파일) (0) | 2013.04.04 |
---|---|
android media scan (folder scan, MediaScannerConnection scan) (0) | 2013.03.22 |
android datepicker wheel, wheel library (0) | 2013.01.09 |
android View Pager Indicator 라이브러리 소개, 화면 플리킹하여 좌우로 이동 (0) | 2012.12.31 |
android 이어폰(헤드셋) 끼었을때 이벤트 받기 (0) | 2012.06.26 |