Analysis Java Program memory summary under Linux

Source: Internet
Author: User
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

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.