First, the memory analysis step
1. Start App.
2, using the monitor command to open: ADM (containing DDMS) -> update heap
3, the operation app, point several times GC
4、dump heap
5、hprof-conv转化 : hprof-conv xxx-a.hprof xxx-b.hprof
6, MAT analysis
Download the mat analysis tool, and then open the converted file.
Specific analysis to understand the java language, and memory, stack, etc., on the follow-up to fix.
Second, the distinction between several memory
1, VSS- Virtual Set Size of virtual memory consumption (contains shared libraries occupy memory)
2, RSS- Resident Set Size actual physical memory (including shared libraries occupy memory)
3, physical memory PSS- Proportional Set Size actually used (prorated shared libraries occupy memory)
4, USS- Unique Set Size process alone take up physical memory (does not include shared libraries occupy memory),
5, the size of the memory footprint in general have the following rules: VSS> = RSS> = PSS> = USS