The full name of the JVM is Java Virtual machine, which shields the software and hardware differences associated with each computer platform.In the days to come, learn the JVM in the form of blogging to make yourself more aware of java!This series is a summary of the in-depth analysis of javaweb Technology Insider and in-depth understanding of Java Virtual Machine, we welcome you to join together to make pr
+ +, not ClassLoader subclass
2) Extension ClassLoader
Some jar packages that are responsible for loading extensions in the JAVA platform, including the jar packages in Jre/lib/*.jar or-djava.ext.dirs specified directories in $java_home
3) App ClassLoader
Responsible for documenting the jar package and class in the directory specified in Classpath
4) Custom ClassLoader
ClassLoader that belong to the application to customize according to their own needs, such as Tomcat, JBoss will be implemented
the object address lost in the stack are cleared), which is the process of garbage collection; for more information about garbage collection, see the previous article JVM Memory Model and garbage collection policy parsing in 51cto.
JVM Architecture
First, we need to figure out what data is and what commands are. Then we need to figure out the methods of the obje
of bootstrap loader, apart from some basic initialization actions, the most important thing is to load the extclassloader (Extended Class Loader)And set its parent to null, which indicates that its parent loader is bootstraploader.(4) Then bootstrap loader needs to load the appclassloader (User-Defined Class LoaderAnd set its parent to the previously generated extclassloader object. Both loaders exist in the form of static classes.It should be noted that launcher $ extclassloader. Class and lau
initialization actions, the most important thing is to load the extclassloader (Extended Class Loader)And set its parent to null, which indicates that its parent loader is bootstraploader.(4) Then bootstrap loader needs to load the appclassloader (User-Defined Class LoaderAnd set its parent to the previously generated extclassloader object. Both loaders exist in the form of static classes.It should be noted that launcher $ extclassloader. Class and launcher $ appclassloader. Class are both load
it bluntly, a variable is set, if the value is true, you do not need to perform various lock/unlock procedures. However, there are still many concepts that need to be explained and many introduced problems need to be solved: Why does 3.1 CAS and SMP architecture CAS introduce local latency? Starting from the SMP (symmetric multi-processor) architecture, this probably indicates the SMP structure: it means t
JVM structure BasicsSome time ago, due to the performance problems of the widely-spread String and StringBuffer, I did a few small experiments and came to some conclusions. However, according to the reaction of netizens, the research did not play a proper purpose, moreover, some netizens also put forward their own opinions and pointed out some of the content in the experiment. In response to their reactions, I decompiled the code for comparison, howev
As the assembly must first talk about the principle of computer composition, before starting bytecode, we first understand the main composition of the JVM. Within the JVM, it consists mainly of the following components:1. Data area
Method Area: Store class definition information, bytecode, constants and other data, in the Sun HotSpot JVM, this block is a
the stack), which is the garbage collection process; For a more in-depth explanation of garbage collection, refer to the "JVM memory model and garbage collection policy Resolution" article before 51CTO.The architecture of the JVMThe first thing we need to figure out is what the data is and what the instructions are. Then you need to figure out where the object's methods and object properties are stored sep
that are not scanned in the heap are idle. All refresh (actually clears the useless object that lost the object's address in the stack), which is the garbage collection process; For a more in-depth explanation of garbage collection, refer to the "JVM memory model and garbage collection policy Resolution" article before 51CTO.The architecture of the JVMThe first thing we need to figure out is what the data
of the JRE , a fictional computer that is implemented by simulating various computer functions on a real computer. JVM has its own perfect hardware architecture, such as processor, stack, register, etc., also has the corresponding instruction system. The main task of the JVM is to interpret its own instruction set (that is, bytecode) and map it to the local CPU
Java will be a platform rather than a programming language.
The original engineers of Java made a wise decision to separate the programming language from the runtime environment, which eventually allowed over 200 languages to run on the Java platform. This architecture is crucial to the long-term vitality of the platform, because the computer programming language generally has a short life cycle. The annual JVM
introduce local latency? This is based on the SMP (symmetric multiprocessor) architecture, which probably indicates the structure of the SMP: it means that all CPUs will share a system bus, which is connected to main memory by this bus. Each core has its own first-level cache, and the cores are symmetrically distributed relative to the bus, so this structure is called "symmetric multiprocessor." CAS is all called Compare-and-swap, is a CPU atomic in
response in the runtime is not optimized in the server mode (Personal PC service development and testing)
View the server and client environments of the JVM.
Java-version // view the default JVM Environment
Java version "1.6.0 _ 22"Java (TM) se Runtime Environment (build 1.6.0 _ 22-b04)Java hotspot (TM) ClientVM (build 17.1-b03, mixed mode, sharing)
Java-client-version // view the
. Especially proficient in Java virtual machines, writing a large number of JVM-related classic articles, by the major technical community to reprint, is iteye and other technology community recognized Java Virtual Machine leader in one of the figures. Currently, far-Light Software Co., Ltd. Platform development manager and Platform architect, has participated in the National Grid, Southern power grid and other national large-scale ERP project platfor
The JVM execution object is a class file that everyone is very familiar with. It is also called a class file. The compiled code file defined by the JVM specification (although not mandatory, it is an actual file) the format is very detailed, but here we only talk about some macro content. In the future, we will have the opportunity to study the details. The format of the class file required by
hardware architecture, such as processor, stack, register and so on, also has the corresponding instruction system. The main work of the JVM is to interpret its own instruction set (that is, bytecode) and map it to the local CPU's instruction set or the OS's system call. The Java language is run across platforms and is actually a different operating system that uses different
example, in Windows system, view the Hkey_local_machine\software\java\java Runtime environment project in the registry)3.JVM Java Virtual machine (Java VM) It is a virtual computer, which is realized by simulating various computer functions on the actual computer. Java Virtual machine has its own perfect hardware architecture, such as processor, stack, register, etc., also has the corresponding instruction
). That is what we call the Java platform, all Java programs must be under the JRE to run. Includes JVM and Java core class libraries and support files. It does not include development tools-compilers, debuggers, and other tools-compared to the JDK.JVM: Java Virtual Mechinal (Java Virtual machine). The JVM is part of the JRE, a fictional computer that is implemented by simulating various computer functions
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.