ADB shell dumpsys meminfo view application memory usage

Source: Internet
Author: User

ADB shell dumpsys meminfo

The following information is displayed:

Currently running services:
Meminfo
-------------------------------------------------------------------------------
Dump of service meminfo:
Applications memory usage (Kb ):
Uptime: 5712383 realtime: 5712383

** Meminfo in PID 100 [Android. process. acore] **
Native Dalvik other total
Size: 10180 3591 N/A 13771
Allocated: 8590 2852 N/A 11442
Free: 297 739 N/A 1036
(PSS): 2821 2360 4880 10061
(Shared dirty): 2768 4768 3936 11472
(Priv dirty): 2588 1172 2996 6756
 
Objects
Views: 40 viewroots: 1
Appcontexts: 9 Activities: 1
Assets: 5 assetmanagers: 5
Local binders: 24 proxy binders: 17
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 586 dbfiles: 0
Numpagers: 2 inactivepagekb: 45
Activepagekb: 0

** Meminfo in PID 125 [COM. Android. settings] **
Native Dalvik other total
Size: 4812 3203 N/A 8015
Allocated: 4733 2519 N/A 7252
Free: 78 684 N/A 762
(PSS): 816 1421 732 2969
(Shared dirty): 2936 4900 1368 9204
(Priv dirty): 560 484 492 1536
 
Objects
Views: 0 viewroots: 0
Appcontexts: 1 Activities: 0
Assets: 2 assetmanagers: 2
Local binders: 2 proxy binders: 16
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 0 dbfiles: 0
Numpagers: 0 inactivepagekb: 0
Activepagekb: 0

** Meminfo in PID 1768 [COM. xinmei365.wallpaper] **
Native Dalvik other total
Size: 20836 8391 N/A 29227
Allocated: 18370 5639 N/A 24009
Free: 437 2752 N/A 3189
(PSS): 5422 8735 15611 29768
(Shared dirty): 2600 4508 924 8032
(Priv dirty): 5204 5056 11412 21672
 
Objects
Views: 367 viewroots: 1
Appcontexts: 4 Activities: 3
Assets: 2 assetmanagers: 2
Local binders: 37 proxy binders: 23
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 39 dbfiles: 0
Numpagers: 2 inactivepagekb: 9
Activepagekb: 0

** Meminfo in PID 217 [COM. svox. Pico] **
Native Dalvik other total
Size: 4764 3203 N/A 7967
Allocated: 4659 2426 N/A 7085
Free: 92 777 N/A 869
(PSS): 698 961 682 2341
(Shared dirty): 3024 4932 1444 9400
(Priv dirty): 412 316 412 1140
 
Objects
Views: 0 viewroots: 0
Appcontexts: 1 Activities: 0
Assets: 2 assetmanagers: 2
Local binders: 1 proxy binders: 5
Death recipients: 0
OpenSSL sockets: 0
 
SQL
Heap: 0 dbfiles: 0
Numpagers: 0 inactivepagekb: 0
Activepagekb: 0

** Meminfo in PID 142 [Android. process. Media] **
Native Dalvik other total
Size: 5792 3271 N/A 9063
Allocated: 4931 2513 N/A 7444
Free: 52 758 N/A 810
(PSS): 1010 1493 1097 3600
(Shared dirty): 2908 4852 1164 8924
(Priv dirty): 760 684 724 2168
 
Objects
Views: 0 viewroots: 0
Appcontexts: 4 Activities: 0
Assets: 4 assetmanagers: 4
Local binders: 7 proxy binders: 9
Death recipients: 0
OpenSSL sockets: 0
 
SQL
Heap: 155 dbfiles: 0
Numpagers: 3 inactivepagekb: 59
Activepagekb: 0

** Meminfo in PID 184 [COM. Android. Email] **
Native Dalvik other total
Size: 4888 3203 N/A 8091
Allocated: 4876 2666 N/A 7542
Free: 11 537 N/A 548
(PSS): 881 1221 833 2935
(Shared dirty): 2956 4952 1308 9216
(Priv dirty): 620 544 560 1724
 
Objects
Views: 0 viewroots: 0
Appcontexts: 2 activities: 0
Assets: 2 assetmanagers: 2
Local binders: 4 proxy binders: 8
Death recipients: 0
OpenSSL sockets: 0
 
SQL
Heap: 56 dbfiles: 0
Numpagers: 3 inactivepagekb: 13
Activepagekb: 0

** Meminfo in PID 133 [COM. Android. alarmclock] **
Native Dalvik other total
Size: 4764 3203 N/A 7967
Allocated: 4723 2575 N/A 7298
Free: 28 628 N/A 656
(PSS): 726 1066 837 2629
(Shared dirty): 2980 4976 1296 9252
(Priv dirty): 460 392 564 1416
 
Objects
Views: 0 viewroots: 0
Appcontexts: 1 Activities: 0
Assets: 2 assetmanagers: 2
Local binders: 2 proxy binders: 10
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 14 dbfiles: 0
Numpagers: 1 inactivepagekb: 3
Activepagekb: 0

** Meminfo in PID 161 [COM. Android. MMS] **
Native Dalvik other total
Size: 4808 3203 N/A 8011
Allocated: 4765 2645 N/A 7410
Free: 42 558 N/A 600
(PSS): 802 1195 849 2846
(Shared dirty): 2952 4948 1268 9168
(Priv dirty): 540 512 624 1676
 
Objects
Views: 0 viewroots: 0
Appcontexts: 2 activities: 0
Assets: 2 assetmanagers: 2
Local binders: 2 proxy binders: 27
Death recipients: 0
OpenSSL sockets: 0
 
SQL
Heap: 0 dbfiles: 0
Numpagers: 0 inactivepagekb: 0
Activepagekb: 0

** Meminfo in PID 52 [system] **
Native Dalvik other total
Size: 13476 6791 N/A 20267
Allocated: 7935 4737 N/A 12672
Free: 464 2054 N/A 2518
(PSS): 2760 6282 7747 16789
(Shared dirty): 2716 4564 952 8232
(Priv dirty): 2528 4308 4988 11824
 
Objects
Views: 127 viewroots: 6
Appcontexts: 10 activities: 0
Assets: 6 assetmanagers: 6
Local binders: 74 proxy binders: 114
Death recipients: 22
OpenSSL sockets: 0
 
SQL
Heap: 64 dbfiles: 0
Numpagers: 2 inactivepagekb: 21
Activepagekb: 0

** Meminfo in PID 93 [COM. Android. Phone] **
Native Dalvik other total
Size: 5152 3847 N/A 8999
Allocated: 5073 3137 N/A 8210
Free: 78 710 N/A 788
(PSS): 1199 2160 1109 4468
(Shared dirty): 2888 4840 1140 8868
(Priv dirty): 952 1336 860 3148
 
Objects
Views: 0 viewroots: 0
Appcontexts: 5 Activities: 0
Assets: 3 assetmanagers: 3
Local binders: 31 proxy binders: 68
Death recipients: 3
OpenSSL sockets: 0
 
SQL
Heap: 181 dbfiles: 0
Numpagers: 2 inactivepagekb: 25
Activepagekb: 0

** Meminfo in PID 92 [COM. Android. inputmethod. Pinyin] **
Native Dalvik other total
Size: 5860 3203 N/A 9063
Allocated: 5822 2627 N/A 8449
Free: 37 576 N/A 613
(PSS): 946 1256 1743 3945
(Shared dirty): 2944 4932 1300 9176
(Priv dirty): 684 508 1480 2672
 
Objects
Views: 12 viewroots: 0
Appcontexts: 3 Activities: 0
Assets: 2 assetmanagers: 2
Local binders: 6 proxy binders: 90
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 0 dbfiles: 0
Numpagers: 0 inactivepagekb: 0
Activepagekb: 0


If there are many apps installed on your mobile phone, a lot of printed information can be used.

ADB shell dumpsys meminfo com. *** (package name) or

ADB shell dumpsys meminfo 1234 (PID)

For example:

ADB shell dumpsys meminfo com. xinmei365.wallpaper
Currently running services:
Meminfo
-------------------------------------------------------------------------------
Dump of service meminfo:
Applications memory usage (Kb ):
Uptime: 7845348 realtime: 7845348

** Meminfo in PID 1882 [COM. xinmei365.wallpaper] **
Native Dalvik other total
Size: 23884 8263 N/A 32147
Allocated: 23485 5486 N/A 28971
Free: 397 2777 N/A 3174
(PSS): 8374 8231 18460 35065
(Shared dirty): 2604 4516 2432 9552
(Priv dirty): 8156 5228 14068 27452
 
Objects
Views: 437 viewroots: 2
Appcontexts: 4 Activities: 3
Assets: 2 assetmanagers: 2
Local binders: 39 proxy binders: 23
Death recipients: 1
OpenSSL sockets: 0
 
SQL
Heap: 41 dbfiles: 0
Numpagers: 2 inactivepagekb: 10
Activepagekb: 0

This is the memory usage of the application. It is helpful to analyze oom.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.