Analysis Java Program memory summary under Linux

Source: Internet
Author: User

Use Pmap to view the process memory execution commands using PMAP to view the memory usage usage of a process (not Java), the command format:PMAP Process ID Demo Sample Description example execution:Pmap 12358 Display Results For example (more content, divided into a few diagram description): Content Start part
End of Content section
, in the first column. Memory block start address the second column. Occupies the memory size of the third column, the Memory permission fourth column. The memory name. Anon represents the dynamically allocated memory, and the stack represents the last line of stack memory. The total memory size, 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 execution commands use Jmap to see how many instances of each object in a Java process, and how much memory is being consumed. Command format:Jmap-histoThe process ID demonstrates a sample description, such as execution:Jmap-histo 12538Show results for example (more content, divided into several diagrams): Content Start section
End of Content section
Medium: First column, ordinal. Meaningless second column, number of object instances in the third column, the object instance occupies the total amount of memory. Units: Bytes column Fourth, object instance name last line, total number of instances and total memory consumption
Also, part of the Demo sample description (not yet clear, perhaps supplemented): [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

Add a blog that finds a nice jmap,jstat such as Java Analytics tools. For example, the following: 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.