Deep understanding of the memory management mechanism of JVM Notes Runtime data Region program counter JVM stack local method stack Java heap method area run frequent pool Direct Memory object access OutOfMemoryError exception Java heap overflow sample JVM stack and local method stack overflow run frequent pool overflow native Direct Memory Overflow
deep understa
Directory
I. Background knowledge
Two. Introduction to JVM Virtual machine memory
Three. Garbage collection
Four. Some changes brought about by JAVA7 and 8
For a Java programmer, it is true that in most cases there is no need to think too much about allocating and releasing memory, nor how much understanding the JVM requires. However, in the process of writing a program is often caused by such a number of memory problems are
that exceeds the maximum allowable capacity of the virtual machine, the Stackoverflowerror exception is thrown (? How to view the maximum capacity of a virtual machine stack) 2) If the Java Virtual machine stack can be dynamically extended, but the attempt cannot request enough memory to create the corresponding virtual machine stack, it throws the OutOfMemoryError exception Java heap (heap): Created at vi
technology. However, the basic differences in size, structure, and metadata associated with digital resources make it necessary to operate in a different way from the relational database created by the Java EE platform and the resources that are already in use. This article explores the standards and techniques needed to create a multimedia application from both the current and developing perspectives. I will also discuss the role of
1 Introduction
The Java heap is a runtime data zone, and the instance (object) of the class allocates space from it. The Java Virtual Machine (JVM) Heap stores all objects created by running applications. These objects are created through commands such as new, newarray, anewarray, and multianewarray, however, they do not need program code to be explicitly released. In general, the heap is responsible for ga
. Heap dumps do not contain information such as variable names, values, or source code.
Before performing heap analysis, a heap dump is required. There are three ways to generate heap dumps:
Automatic: The JVM typically generates a heap dump when content is exhausted and crashes.
Manual: You can send a signal to the JVM asking the JVM to heap dumps. (The MDD4J document has information about how to heap dumps on various platforms).
Programming: IBM SDK for
JMX Full name Java Management Extensions, which provides management extensions for Java applications. Introduced in Java 5Concept
Name
Description
Mbean
All called managed beans, you can implement an Mbean to provide
Original: Java Struts+hibernate Enterprise Human Resources management system source code downloadSource code: Http://www.zuidaima.com/share/1778471692995584.htmA simple Talent management systemHuman resource management is a very important field in management, which can manag
Requirements Analysis:There is a factory, there are many agents (merchant or door first), before the merchant purchase, inventory, sales, customer information, such as records in the Excel tableOr no records, the management is more chaotic, the profit is unclear. Unable to effectively understand store operations and customer tracking recordsManufacturers also can not be in real time to understand the following agents operating conditions and inventory
implement this memory area as they want. However, in general, in addition to saving the symbolic references described in the class file, the translated direct references are also stored in the run-time ① pool.Another important feature of running a constant pool with respect to the regular pool of class files is the dynamic nature of the Java languageWords do not require constants to be generated only at compile time, that is, the contents of a consta
Java GUI implements the student achievement management system,
I have been learning java for more than a year and have been doing web exercises. In a project, I found that the GUI-related knowledge is required and the results cannot be obtained, there are not many articles in this area on the Internet, so I had to learn them from the beginning. However, I found t
thrown.Local method StackThe local method stack is similar to the virtual machine, except that the virtual machine stack is the Java method service that the virtual machine executes, and the local method stack is the native method service used by the virtual machine. Some virtual machines combine the local method stack and the virtual machine stack directly.Throws Stackoverflowerror and OutOfMemoryError exceptions.Java heapThe
thrown.Local method StackThe local method stack is similar to the virtual machine, except that the virtual machine stack is the Java method service that the virtual machine executes, and the local method stack is the native method service used by the virtual machine. Some virtual machines combine the local method stack and the virtual machine stack directly.Throws Stackoverflowerror and OutOfMemoryError exceptions.Java heapThe
OutOfMemoryError exception is thrown.Local method StackThe local method stack is similar to the virtual machine, except that the virtual machine stack is the Java method service that the virtual machine executes, and the local method stack is the native method service used by the virtual machine. Some virtual machines combine the local method stack and the virtual machine stack directly.Throws Stackoverflowerror and OutOfMemoryError exceptions.Java H
, char, short, int, float, long, double), object reference, and ReturnAddress type (which points to the address of a bytecode directive).If you cannot request enough memory for the extension, the OutOfMemoryError exception is thrown.Local method StackThe local method stack is similar to the virtual machine, except that the virtual machine stack is the Java method service that the virtual machine executes, and the local method stack is the native metho
constants)9、一个指向类加载器的引用(A reference to class ClassLoader)10、一个指向Class类的引用(A reference to class Class)11、基本类型的常量池(The constant pool for the type)Methods List (method Tables)To gain more efficient access to all data stored in the method area, in the method area, there is a data structure designed to speed up access, in addition to saving the above types of information: a list of methods. For each non-abstract class that is loaded, the Java Virtual mach
Introduction
The Java heap is a runtime data zone, and the instance (object) of the class allocates space from it. The Java Virtual Machine (JVM) Heap stores all objects created by running applications. These objects are created through commands such as new, newarray, anewarray, and multianewarray, however, they do not need program code to be explicitly released. In general, the heap is responsible for garb
, and these objects occupy the memory can not be reused, this time a memory leak occurs.Once this happens in the program, it consumes the system's available memory until the available memory is exhausted. For a computer, a memory leak is very serious and can cause a program that would otherwise run normally to be interrupted directly because of insufficient memory. Exception with Java is not a level of error.
For display memory
Bookstore Management SystemThe bookstore management system can be said to be a more classic example of design patterns and design ideas.This series will be divided into several sections on this transmission management system.Bookstore management system will be divided into: Users, books, purchase, sales and inventory o
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.