Use Pmap to view the process memory Run command use PMAP to view the memory usage usage of a process (not Java), command format:pmap Process ID Sample Description For example run: Pmap 12358 display results such as (more content, divided into several diagram description): Content Start part
End of Content section
In the first column, the memory block starting address the second column, the memory size of the third column, the memory permissions of the fourth column, memory name, anon represents the dynamically allocated memory, the stack represents the last row of stack memory, the total memory size, please note that this is the virtual memory size, the amount of physical memory occupied by the top view
Use Jmap to view Java Process object Usage run commands use Jmap to see how many instances of each object in a Java process, how much memory is consumed, and the command format: thejmap-histo Process ID sample description, such as run:Jmap- Histo 12538 Display results such as (more content, divided into a few diagram description): Content Start part
End of Content section
Medium: First column, ordinal, meaningless second column, number of object instances third column, object instance occupies total memory, unit: Byte fourth, last row of object instance name, total number of instances and total memory consumption
Also, part of the example shows (not yet understood, subsequent additions): [C,[b,[i,[j,[l, using Jstat to view Java memory distribution and recycling see this post directly: http://blog.csdn.net/zlzlei/article/details/46471627
Added a good jmap,jstat such as Java Analytics Tools blog, as follows: http://blog.csdn.net/fenglibing/article/details/6411999
Analysis Java Program memory summary under Linux