Java Virtual machine Memory tips

Source: Internet
Author: User

Java Virtual machine memory can be divided into exclusive and shared areas.

Exclusive zone: Virtual memory stack, local method stack, program counter.

Shared area: The method area, Java heap (used to hold object instances).

Program counter

Compared to a small memory space, the line number indicator of the byte code executed by the current thread, if executed as a Java method, the counter records the address of the executing virtual machine bytecode instruction, or undefined if the method is the native method.

Virtual Machine Stack (Java Method Service for JVM execution)

The data that is run when the method is stored describes the dynamic memory model that the method executes.

Stack frame: Each time the method executes, a stack frame is created, and the stack frame is started to execute. If other methods are called, a stack frame is created, followed by the stack's advanced first.

Local Variables Table: stores the various data types known to the compiler, and the size does not change because only references are stored.

Java Virtual machine Memory tips

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.