This blog post focuses on the components of the JVM (Java Virtual machine) and how they work within them. It is important to note that although most of the times we use the JVM provided by Sun (now acquired by Oracle), the JVM itself is a specification, so there are many implementations, in addition to hotspots, such as Oracle's JRockit, IBM's J9 are also very well-known JVMs.1. StructureShows the main stru
The Java Virtual machine divides the memory it manages into several different data regions during the execution of a Java program. These areas are used in different ways, and the data is created and destroyed independently, based on the respective rules of execution.The partition of the virtual machine memory:The areas
The virtual machine is located between the machine and the compiler, which is an abstract virtual machine. A virtual machine provides a common interface to the compiler on any platform, the compiler targets the virtual machine, generates code that the virtual machine can und
Why you should know about GCWe all know that Java developers do not need to be concerned about the recycling of objects in the development process, because the Java virtual machine causes it to automatically reclaim the failed garbage objects. So why do we have to learn about GC and memory allocation?The answer is simple: when we need to troubleshoot various memo
1. Java Virtual functionsThe existence of virtual functions is for polymorphism.The ordinary member function plus the virtual keyword in C + + becomes a virtual functionIn Java, there is no vi
JIT compiler , English writing just-in-time Compiler, Chinese means instant compilerThe reason the class field does not need to be initialized:After the memory allocation is complete, the virtual machine needs to initialize the allocated memory space to a value of 0 (excluding the object header), and if Tlab is used, the work process can also be advanced to Tlab allocation. This step ensures that an instance field of an object can be used directly in
The JDK is a minimal set of environments that support Java Program development, and theJRE is a standard environment for Java programs to run. The JRE is part of the JDK. The Java 1.0 version was born in 1995 , the virtual machine used by the Sun classisc vm, which is no longer in use. JDK1.3 ,theHotSpot VM becomes
1. Strong, soft, weak, and virtual references to objectsIn previous versions of JDK 1.2, if an object was not referenced by any variable, the program could no longer use the object. That is, only the object is in the accessible (reachable) state before the program can use it. Starting with JDK version 1.2, the reference to the object is divided into 4 levels, giving the program more flexibility in controlling the object's life cycle. These 4 levels ar
This book provides a detailed introduction to the fundamentals of Java virtual machines and the optimization of diagnostic methods. It focuses on the Java Virtual Machine architecture, common virtual machine parameters, Java
As a Java program ape, we know that we have written well. Java source code, and finally compiled by the Java compiler to a. class file, which is a file consisting of bytes, also known as bytecode files. So what exactly is inside the class bytecode file? How is it organized? Let's take a look at the structure of his composition first.
NO1. Magic Number (M
Objective
This article is mainly to introduce the Java Virtual machine fault handling tools, the article mentioned that these tools include:
Name
Main role
JPs
JVM process Status Tool, which displays all hotspot virtual machine processes within the specified system. Typically a local host
Jstat
JVM Statistics moni
strong, soft, weak, and virtual references to objectsin previous versions of JDK 1.2, if an object was not referenced by any variable, the program could no longer use the object. That is, only the object is in the accessible (reachable) state before the program can use it. Starting with JDK version 1.2, the reference to the object is divided into 4 levels, giving the program more flexibility in controlling the object's life cycle. These 4 levels are h
上周末搬家后,家里的宽带一直没弄好,跟电信客服反映了N遍了终于约了个师傅明天早上来迁移宽带,可以结束一个多星期没网的痛苦日子了。这段时间也是各种忙,都一个星期没更新博客了,再不写之前那种状态和激情都要慢慢褪去了,总觉得心里慌的一逼,这怎么行呢?!趁明天周末,在公司电脑上记录下这周的一些学习内容。近期在看一本很经典的java书籍:《深入理解java虚拟机 第二版》,几年前也翻过,但那时候功力不够,不太能看懂就没看了。现在回过头来看,发现确实写的很好,很多知识点都能理解了,而且讲的也很有深度,收获颇多。后期计划按照这本书的内容写出一系列博客,来深入学习和复习下java虚拟机相关的知识。Fu Yun Source code downloadAddress one: "hubawl.com" Fox PA Source Foru
Download address: Network disk download
Directory: Preface the first part of the introduction to Java 1th Chapter approaching Java 1.1 Overview 1.2 Java Technology System 1.3 Java History 1.4 Java Virtual machine history 1.4.1
Java Virtual machine memory is divided into five regions: method Area, heap, virtual machine stack, local method stack, program counter. Where the method area and heap are the memory areas shared by the Java Virtual machine, the virtual
A virtual machine is a virtual computer that is used to perform a series of virtual computer commands. Virtual machines can generally be divided into the following:
(1) System virtual machine: Visual Box, VMware, etc.
(2) Program virtual
In the memory area of the Java Virtual machine, the program counter, the virtual machine stack, and the local method stack three areas are thread-private, generates with the thread, and out of line, with the stack frame in the stack and out of the stack as the method enters and exits, the amount of memory allocated per stack frame is basically known when the clas
In Java, except for eight basic types (Boolean, byte, short, Int, long, Char, float, and double), other types are reference types, including class types (including arrays) interface type, such as string, array, and file stream. A reference variable in Java is a variable that stores the address of an object in the memory. Therefore, the comparison of the string content does not directly use the equal sign, b
first, the Java memory composition is introduced:堆(Heap)And非堆(Non-heap)Memory
According to the official statement, "Java virtual machines have a heap, the heap is a runtime data region, and all class instances and arrays of memory are allocated from here." The heap is created when the Java
recycling algorithm for recycling, so it seems that classification is so troublesome, in fact, it is very good.Referring to the memory structure of a virtual machine, the first thing you might think about is the stack. Objects are allocated on the heap, and the stack is used to assign the reference to the object and some basic data type-related values. However, the memory structure of the virtual machine i
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.