, allowing you to easily learn the secrets of Java virtual machines. Deep understanding of Java Virtual Machine: Advanced JVM features and best practices has been published in China in recent years.The only monograph related to Java virtual machine is also the only one that explores Java Virtual Machine from both the core theory and practical use. It not only thoroughly analyzes the theory, but also containsTypical Cases and best practices are also of
remaining memory in the Eden + from nation vor (Xmx-xmn) * (1-cmsinitiatingoccupancyfraction/100)> = (xmn-xmn/(using vorratior + 2), then we can infer:
Cmsinitiatingoccupancyfraction
For example:
When xmx = 128 xmn = 36 survivorratior = 1, cmsinitiatingoccupancyfraction
When xmx = 128 xmn = 24 survivorratior = 1, cmsinitiatingoccupancyfraction
When xmx = 3000 xmn = 600 export vorratior = 1, cmsinitiatingoccupancyfraction
Cmsinitiatingoccupancyfraction is lower than 70%. You need
loader receives a request for loading classes, it first delegates the loading task to the parent class loader, recursively returning it, if the parent class loader can complete the class loading task, it will return a successful result. Only when the parent class loader cannot complete the loading task can it load it by itself.
9. JVM Optimization
View heap space allocation (distribution of young, old, and persistent)
Garbage Collection
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
survivor area of space, again promoted to the old Gen area, The old Gen area also had insufficient memory to produce the promontion faild which led to the full GC. It can be inferred that promontion faild does not occur when the remaining memory is Eden+from survivor (XMX-XMN) * (1-cmsinitiatingoccupancyfraction/100) >= (xmn-xmn/(survivorratior+2)) and infer:Cmsinitiatingoccupancyfraction For example:When xmx=128 xmn=36 survivorratior=1 cmsinitiatingoccupancyfractionWhen xmx=128 xmn=24 survivor
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
Jvm intermittent crash analysis, jvm intermittent crashHttp://www.cnblogs.com/LBSer/p/4417148.html1 Problem Description
A service has two machines, and the alarm load is high every few days. At the beginning, the monitoring system found that the gc Time Jitter was very high, so it was thought that fullgc caused choppy and did not pay attention to it, then, log on
JVM principle and optimization, and JVM principle Optimization
The jvmjob principle and special point are that the operating system is installed with jvmthrough jdk's java.exe, and the following four steps are used to complete the JVM environment.
1. Create a JVM loading environment and Configuration
2. Load
Java applications are running on the JVM, but do you know anything about JVM technology? This article (the first part of the series) describes how classic Java virtual machines work, such as: the pros and cons of Java authoring once, Cross-platform engines, garbage collection basics, classic GC algorithms, and compiler optimizations. The following article will talk about
Solve JVM memory overflow and jvm memory overflow
Today I encountered a problem. When I restarted Tomcat 6 when adding the configuration file (*. xml) content, the console reported the error: java. lang. StackOverflowError;
That is, stack overflow error.
Memory overflow occurs when the memory used by the program is larger than the maximum memory provided by the virtual machine. Memory overflow depends on
console, the memory monitoring curve has been at the top, the program response is slow, from the thread view, most of the threads in the GC, occupy more CPU, the final program terminated abnormally, reported to Oom. Oom occurs in uncertain time, has a short one hours, has a long 10 days and one months. Regarding the handling of the exception, determine the OOM/ML exception, be sure to pay attention to the protection of the site, you can dump heap, if
Chapter 5 JVM garbage collector (1): jvm garbage collection
(The garbage collection algorithm is a theory, and the garbage collector is a collection algorithm. For details about the collection algorithm, see Chapter 4 JVM garbage collection algorithm.)
1. Seven garbage collectors
Serial (Serial GC)
ParNew (parallel GC)
Parallel Scavenge (Parallel GC collectio
composed of more than n parts, and also contains heapsize, In fact, after a lot of data access, especially to see some monitoring tools, only to know that the official information is also a misunderstanding, hehe, through simplification, I draw this picture I want to help you understand the JVM's approximate memory division (this is only referring to the JVM's own memory, That is heapsize and permsize part, the rest of the article is explained later)
The JVM's full name is Java Virtual Machine (Java VM), which shields the software and hardware differences associated with each computer platform.
in the coming days, I'll learn the JVM in the form of blogging, to make myself more aware of the Java
This series of articles is "Deep analysis of Javaweb Technology Insider" and "in-depth understanding of Java Virtual Machine" Summary, welcome everyone to spit together, progress together
JVM-Concepts and jvm-Experiences
I recently took the time to review the JVM concept. Now I will record my experiences.
Part 1: abstract a JVM concept diagram based on learning to describe the composition and basic functions of each major component.
Part 2: Describe the content based on the structure diagram.
1) --
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
Brief introduction
Starting with IBM I 7.1, IBM Classic Java Virtual Machine is no longer supported by IBM I. The IBM Technology for Java Virtual Machine (also known as the IBM J9 JVM) became the only supported JVM. This article is intended to illustrate the differences between the two JVMs, while helping users and developers migrate their applications from the Classic
JVM Memory Model and jvm Model
JVM defines the data regions used during execution of several programs. Some data in this region is created at JVM startup and destroyed at JVM exit. Other data depends on every thread. It is created when the thread is created and destroyed w
This article says how to understand threads from a JVM's point of view, you can have a deeper understanding of the Java threading model, and some of the details of the GC will be more deeply understood. This paper is based on the OpenJDK7 implementation of hotspot.We know that the JVM is primarily implemented in C + +, and the class inheritance structure for the thread defined by the JVM is as follows:Class
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 components are explained in two chapters. The
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.