Process Memory (RSS)
Stay organized with collections
Save and categorize content based on your preferences.
For apps deployed to devices running Android 9 or higher, the Process Memory
(RSS) section shows the amount of physical memory in use by the app.
Figure 1. Viewing physical memory in the profiler.
Here is what the rows in the Process Memory (RSS) section mean:
Total: This is the total amount of physical memory in use by
your process. On Unix-based systems, this is known as the "Resident Set Size",
and is the combination of all the memory used by anonymous allocations, file
mappings, and shared memory allocations.
For Windows developers, Resident Set Size is analogous to the Working Set
Size.
Allocated: This counter tracks how much physical memory is currently used
by the process's normal memory allocations. These are allocations which are
anonymous (not backed by a specific file) and private (not shared). In most
applications, these are made up of heap allocations (with malloc
or new
)
and stack memory. When swapped out from physical memory, these allocations are
written to the system swap file.
File Mappings: This counter tracks the amount of physical memory the
process is using for file mappings—that is, memory mapped from files
into a region of memory by the memory manager.
Shared: This counter tracks how much physical memory is being used to
share memory between this process and other processes in the system.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-29 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-29 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-29 UTC."]]