Last written 1. A preliminary understanding of the JVM-the JVM sequence, followed today to write the JVM's operating mechanism.First, the JVM startup processThe Java platform includes the JVM and the Java language, where the JVM is also an application process running in the
JVM garbage collection and jvm garbage collection
JVM garbage collection
This article attempts to briefly introduce the mainstream JVM garbage collection mechanism.
Scope of a garbage collection Discussion
JVM memory is divided into several parts: Method Area,
Talking about JVM and memory allocation, talking about JVM Memory Allocation
1. program memory allocation
Initial Memory Allocation
When a program is ready to run, it first needs memory from the Java virtual machine, but the Java Virtual Machine itself does not have the permission. It can only apply for memory from the operating system. At this time, the Java Virtual Machine will have an initial memory,
He
JVM review notes and jvm Review
-- Take it easy
Garbage collection:
Young generation ------- serial, parnew, parallel scavengeTenured gencration --------- CMS, Serial old (MSC), parallel old.The parallel scavenge collector is a new generation collector that uses apparel algorithms and parallel multi-thread collectors.It looks like parnew. What's special?-- The characteristics of parallel scavenge collecto
Jvm performance monitoring and common tools, common tools for jvm monitoring
Common JDK command line tools
Jps: jps [options] [hostid].-q only displays the jvmid,-m parameter passed to main class,-l class full name, and-v jvm startup parameter.
Jstat: jstat [options] vmid [interval [s] | MS] [count]-gc-gcutil
Jinfo: jinfo [option] pid
Jmap: jmap [opt
JVM-graphics display bytecode execution engine execution process, jvm-bytecode
In my previous blog JVM-String comparison-bytecode analysis, I introduced the reasons for String comparison. By analyzing bytecode, this blog will show the internal bytecode execution process of the method.
Not to mention, paste the Java method code we will analyze:
public static void
JVM re-sorting and JVM re-sorting
Reordering is usually a method used by the compiler or runtime environment to re-sort and execute commands to optimize program performance. There are two types of re-sorting: Re-sorting during compilation and re-sorting during runtime, which correspond to the compiling and runtime environments respectively.
In a concurrent program, the programmer pays special attention to d
This section Xiao Wang focuses on the next Java memory, first ask:
How 1.JVM memory is allocated
2. Why divide the new generation and the old age, in practice which belong to what belongs to the old
3. Briefly describe how JSTAT-GC
How 1.JVM memory is allocated 1.1 Concept Introduction
Memory is divided into two parts of the stack
Stack: Thread Private
Heap: Thread sharing
Stack:
Program counter: The byte
The implementation of bytecode commands in jvm is important, and the implementation of bytecode in jvm is important.
Java is interpreted and executed, including the dynamic link feature, which provides a lot of space for flexible expansion during parsing or running. How to compile and parse the inheritance, encapsulation, and polymorphism features of object-oriented languages in
JVM-Garbage Collector, jvm-garbage collection
This article mainly introduces several JVM garbage collectors. As shown below, the three above are the new generation collectors,
The following three are the collectors of the old generation. The G1 collector can be used for the collection of the new generation and the old generation.
JVM tuning series: garbage collection and jvm Tuning
Summary: jvm is a required series, which summarizes some common jvm collection mechanisms for easy reference.
Before optimization, we must understand how it runs. java's Garbage Collection is usually called "GC", which was born in The Lisp Language of MIT in 1960,
Chapter 4 JVM garbage collection algorithm and Chapter 4 jvm garbage collection
Note: Before reading this article, you need to know how to determine whether the object is alive or not. For details, see Chapter 3 JVM memory recycle area + object survival judgment + reference type + garbage collection thread.
Note: This article mainly refers to the distributed Java
Chapter 9 JVM tuning recommendations and chapter 9 JVM tuning recommendations
Note: This article mainly references distributed Java applications: basics and practices
1. JVM optimization is mainly about memory optimization, mainly in two aspects:
Size of each generation
Garbage Collector Selection
2. Size of each generation
Common Adjustment Parameters
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
JVM tuning-New Generation and jvm tuning New Generation
A new generation of Java virtual machines, including eden space and two dedicated vor spaces.
The new generation is used to store newly created objects. The new generation features fast object updates and produces a large number of "Dead objects" in a short time ". Garbage collection for young generations is called secondary garbage collection (minor
In this section we summarize the memory allocation policy in the JVM. The directory is as follows: Memory allocation policyObject first in New Generation Eden AssignmentLarge objects go straight into the old ageLong-lived objects will enter the old age.Dynamic Object Age DeterminationSpace allocation guaranteed memory allocation policyThe automatic memory management advocated in the Java technology system can be attributed to two parts: allocating mem
Difference between heap memory and stack memory in JVM, and between jvm heap memory
Java divides memory into two types: stack memory and stack memory.
TheSome basic types of variables and Object Reference variables are allocated in the function stack memory.. When a variable is defined in a code block, java allocates memory space for the variable in the stack. When the scope of the variable is exceeded, jav
JVM learning-runtime data zone and jvm learning data Zone
Unlike C and C ++ programs, the memory management of Java programs is taken over by the java Virtual Machine (JVM), which reduces the burden on Java programmers, however, if an OutOfMemory or StackOverFlow Exception error occurs, it is difficult to locate the error quickly if you do not know the memory man
Deep understanding of JVM (1)-Java memory region, jvm-java
1. Data Area During Running
During Java program execution, the Java Virtual Machine divides the memory it manages into several different data regions.
The memory managed by the Java Virtual Machine will include the following runtime data areas:
1. Program counters
1) The Program counter (Program CounterRegister) is a small memory space. Its functio
JVM garbage collection algorithm and jvm garbage collection
1. Mark-cleanup algorithm: the most basic garbage collection algorithm. Just like its name, the algorithm consists of two steps: Marking and cleanup: first, marking the objects to be cleansed, after marking is completed, all marked objects are recycled in a unified manner. The disadvantage of this algorithm is efficiency, low efficiency in the mark
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.