From: http://developer.51cto.com/art/201009/227977.htm
Whether you know about the JVM memory structure. Here we will share with you that the JVM memory structure mainly includes two subsystems and two components: runtimedataarea (runtime data area) component and nativeinterface (Local interface) component.
JVM Memory Structure
I recently looked at some cases of J
One: Java technology system module diagram II: JVM Memory Area model
1. Method Area
Also known as "permanent generation", "not heap", it is used to store virtual machine loaded class information, constants, static variables, is the memory area shared by each thread. The default minimum value is 16MB and the maximum is 64MB, and the size of the method area can be limited by-xx:permsize and-xx:maxpermsize parameters.
Run a constant-amount pool: is part
The JVM is a virtual machine and a specification, and he follows the design principles of the von Neumann architecture. Von Neumann architecture, it is pointed out that the computer processing data and instructions are binary number, using stored procedures to store in the same memory without distinction, and sequential execution, instruction by the operation cod
. if you do not call GetPublicJREHome To Check HKEY_LOCAL_MACHINE \ Software \ JavaSoft \ Java Runtime Environment \ "Current JRE version number" \ JavaHome, the path is jre path.
Then load the JVM. cfg file JRE path + \ lib + \ ARCH (CPU architecture) + \ JVM. the cfcompetition (CPU architecture) is determined by the
executed in different environments after the first time, and does not need to change the original code. Java portability is key to the enterprise application language: Developers do not need to rewrite the application code for different platforms because the JVM is responsible for translation and platform optimization.
A JVM is essentially a virtual execution environment, as a byte code instruction machin
JVM interpretation (III): JVM memory region, interpretation of jvm memory region
The full name of JVM is java Virtual Machine (java Virtual Machine). JVM shields software and hardware differences related to various computer platforms.In the following days, I learned
The Java-language source program is compiled into a platform-independent ' bytecode program ' (. class file, 0, 12 binaries) through the Java compiler, which is then interpreted in the Java interpreter above the OS, and the JVM is the core and foundation of Java. A virtual processor between the Java compiler and the OS platform.First, the principle of the JVM1. Introduction to the JVM:The JVM is the core an
A better jvm parameter configuration and jvm introduction, better jvm parameter Introduction
Jvm parameter configuration for a good web server:
-Server // server mode-Xmx2g // maximum heap memory that can be allocated by JVM, allocated as needed-Xms2g // heap memory initia
JVM advanced features-2. Distribution, layout, access process, and JVM layout of jvm objects in the heap
After introducing the data area of the jvm runtime, I will explain other details about the data in the memory to see how they are created, laid out, and accessed.
I. Object Creation
1. Object allocation
There ar
JVM memory management, garbage collection, and jvm Memory Management
I. JVM Memory Structure
The Java Virtual Machine divides the memory into several different management zones. These regions have their own purposes. Based on their characteristics, they undertake different tasks and use different algorithms for garbage collection. It consists of the following par
[JVM] 1. jvm VM parameters-X and JVM-x
Options that begin with-X are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the JDK.Non-standard options starting with-X (cannot be guaranteed to be supported by all JVM implementations)
JVM Insider: detailed explanation of Java virtual machine, jvm Insider: Java Virtual Machine
This article explains the internal architecture of Java Virtual Machine (JVM. Displays typical JVM core internal components that comply with Java SE 7 specifications.
The displayed
JVM Insider: detailed explanation of Java virtual machine, jvm Insider: Java Virtual Machine
This article explains the internal architecture of Java Virtual Machine (JVM. Displays typical JVM core internal components that comply with Java SE 7 specifications.
The displayed
(see the getpublicjrehome function ).
Function: getpublicjrehome firstHKEY_LOCAL_MACHINE/software/kerberoft/Java Runtime Environment/CurrentVersionIf the key value is "Current JRE version number", determine whether "Current JRE version number" is 1.4 as the version number. If yesTake HKEY_LOCAL_MACHINE/software/javasoft/Java Runtime Environment/"Current JRE version number"/Javahome is in the JRE path.
The JRE path returned by my JDK is "D:/Java/j2sdk1.4.2 _ 04/JRE ".
B. The configuration file f
JVM Stack resolver operation problem, that is, how the program executes, or how to process the data; The JVM heap solves the problem of data storage, where the data is placed, where it is placed, and what is stored in the JVM heap is the object. The JVM stack is a reference to the base data type and the objects in the
JVM.dll and hanging bounds to jnienv (JNI call interface) instance
This allows the JVM's functions to be invoked in Java. The invocation of INVOCATIONFUNCTIONS->CREATEJAVAVM, the Jni_createjavavm method in the JVM, obtains an instance of the JNIENV structure.
4. Invoke the JNIEnv instance to mount and process the class class.
The basic structure of the JVM
The JV
The JVM heap size setting is a deep dive. It requires both a high degree of understanding and implementation of the architecture and a deep understanding and mastery of the internal language mechanism.First, you need to have a preset and monitor the JVM heap size. See this article to select five suggestions (5 tips for proper Java heap size) for the appropriate J
Deep understanding of Java Virtual Machine: JVM advanced features and best practices (in-depth analysis of JVM Based on issues such as memory management and high concurrency)
Provides a comprehensive and in-depth analysis of JVM based on core content such as memory management, execution subsystem, programming compilation and optimization, and efficient concurrenc
Jdk:java Development ToolKit (Java SDK), including the Java Runtime Environment JRE (Java Runtime envirnment), a bunch of Java tools (javac/java/ JDB, etc.) and Java-based class libraries (that is, Java APIs include Rt.jar).The JDK includes the JRE primarily because of the tools and examples available in the JDK and requires JRE support to run.Jre:java Runtime enviromental (Java Runtime Environment). That is what we call the Java platform, all Java programs must be under the JRE to run. Includes
JVM runtime memory structure and JVM runtime Memory Structure
1. JVM Memory Model
JVM runtime memory = shared memory zone + thread memory Zone
1). Shared Memory Zone
Shared Memory zone = persistent band + heap
Persistent tape = method zone + others
Heap = Old Space + Young Space
Young Space = Eden + S0 + S1
(1) Pers
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.