JVM-class loading mechanism and jvm-Loading MechanismVirtual Machine Loading Mechanism
The Virtual Machine loads the class data described from the class file to the memory, verifies the data, converts the parsing and initialization, and finally forms the Java type that can be directly used by the virtual machine, this is the class loading mechanism of virtual machines.
Class loading time
Class is loaded to
Complete parsing of JVM-class file-field table set, jvm-class fieldField table set
This class file has been parsed for a long time. this section describes the category magic number, version number, main board number, constant pool entry, constant pool, access flag, class index, parent class index, and interface index set. the field table set should be included below.
Then the set of interface indexes is the
JVM tuning summary, jvm Tuning
Auxiliary InformationJVM provides a large number of command line parameters and prints information for debugging. There are mainly the following:
-XX: + PrintGCOutput Format: [GC 118250 K-> 113543 K (130112 K), 0.0094143 secs][Full GC 121376 K-> 10414 K (130112 K), 0.0650971 secs]
-XX: + PrintGCDetailsOutput Format: [GC [DefNew: 8614 K-> 781 K (9088 K), 0.0123035 secs] 1
I. Introduction of TOOLSJconsole: A Java GUI monitoring tool that can display a variety of data in a tabular format. Remote server VMS can be monitored through remote connections. A GUI program written in Java, used to monitor VMS, and to monitor remote VMS, is very easy to use and very powerful. Command line to play Jconsole, select the process is OK.It is important to note that before running the Jconsole, the environment variable display must be set up first;2, the use of the process2.1 Enter
When executing a Java program, the Java Virtual Machine divides the memory it manages into several different data regions. These regions have their own purposes, as well as the creation and destruction time. Some regions exist with the startup of virtual machine processes, some regions are created and destroyed Based on the startup and termination of the user's thread. The memory managed by the Java Virtual Machine will include several runtime data regions, as shown in:650) This. width = 650; "s
Oom?Java.lang.OutOfMemoryError:java head space heap memory overflowJava.lang.OutOfMemoryError:Permgen Space Java Eternal Overflow, that is, methods to overflow, generally because of the emergence of a large number of classes and JSPs, or the use of Cglib reflection mechanism,This can be resolved by changing the size of the method area and modifying it in the form of a similar-xx:permsize=64m-xx:maxpermsize=256m. In addition, too many constants, especially strings, can cause the method area to ov
The JVM is the heavy load machine behind Java features and performance, which most developers take for granted. However, few of us understand how the JVM works-like task assignments and garbage collection, turning threads, opening and closing files, interrupting and/or JIT compiling Java bytecode, and so on.
Not being familiar with the JVM will not only affect a
JVM tuning-calculate the active data size and jvm tuning Active Data
Active Data, sometimes called survival data, refers to the size of long-lived objects in the Java heap when the application is in stable running state. In other words, the space occupied by the Java heap after FullGC in the stable running state of the application (memory usage ).
1. Importance of active data computing
The calculation of t
As we all know, the JVM used to be interpreted in the past, but later in the history of the revision also added to the implementation of the compilation. So in general the JVM is comprised of interpretation execution and compilation execution. This part does not belong to the scope of the JVM, has been compiled, most of them are lexical analysis and the like, the
JVM class loading mechanism ---- 2. jvm Loading Mechanism
The first phase of the class loading mechanism is:
1. Use a fully qualified Class name (package name and Class Name) to obtain the binary byte stream (Class file) that defines this Class ). You can use the jar package, war package, network retrieval, and JSP file generation methods.
2. Convert the static storage structure represented by this byte st
Jvm memory growth troubleshooting examples and jvm troubleshooting examplesTroubleshoot jvm memory Growth
Troubleshoot the problem that the jvm memory usage continues to increase. record it and take it as a warning.
The O M team found that the jvm memory usage of the applic
Jvm running data distribution and jvm Data Distribution
I have a deep understanding of jvm (java se7 of this version)
Data Area During java Runtime
When executing a java program, the java Virtual Machine divides the memory into several different stages and has different time. Different purposes
First
Program counter: A small memory space in the
JVM garbage collection algorithm and jvm garbage collection
1. Reference Counting Collector)
The reference counting algorithm is a simple but inefficient algorithm. Its main principle is as follows: each object in the heap has a reference counter; when the object is referenced, add 1 to the reference counter; when the referenced object is left empty or out of scope, the reference counter minus 1. This metho
Garbage collection in Jvm and Jvm garbage collection
I. Concept of garbage collection
Memory collection in Java is the memory collection during Jvm runtime. The areas to be recycled include the method area and Java heap. Because of program counters, Java Virtual Machine stacks and local method stacks are automatically recycled at the end of methods or threads, so
Kupqytu. dll/Trojan. win32.undef. fzq, kmwprnp. dll/Trojan. win32.agent. LMO 1
EndurerOriginal2008-06-031Version
Today, the last user who encountered gjlbj. vya/Trojan. win32.agent. Kle (for details, see gjlbj. vya/Trojan. win32.agent. Kle) said the virus has recursed ~
Pass pe_xscan and send it back to a netizen to scan logs, which is similar to the following:
Pe_xscan 08-04-26 by Purple endurer6.0.2900.21
The Non-MFC DLLs are explained in the previous section, and this section describes how to create an MFC rule DLL and how to use the MFC rule DLLs. I. Overview of MFC Rules DLLsThe concept of the MFC rules DLL is embodied in two ways: (1) It is MFC's"is MFC" means that MFC can be used inside this DLL; (2) It's a rule."is regular" means that it differs from the
Analysis of JVM Memory Model and javajvm Model Based on Java Technology
1. JVM Memory Model
The JVM specification divides the VM memory into heap, stack, method zone, local method stack, and program counter. The heap and method areas are the areas shared by threads. Local method stacks, stack memory, and program counters are exclusive to threads.
2. Stack
Stack
Comparison between Dalvik Virtual Machine and JVM: Dalvik Virtual Machine JVM
The Dalvik virtual machine has many similar features as the Java Virtual Machine, including GC, JIT, and JNI. The main difference is that the file format and instruction set are different, and the features of the two are compared and discussed below.Difference1: File Format
Dalvik's virtual machine files use the dex format, while
Let's talk about the JVM class loading mechanism and jvm loading mechanism.
I wrote this article a few months ago to deeply understand the Java class loading principle. I briefly talked about my understanding of Java class loading. Recently, I also studied the book "deep understanding of Java virtual machines, I have a more systematic understanding of the JVM cl
Java basic questions (JVM), java basic questions jvm
1. What is a Java Virtual Machine? Why is Java called a platform-independent programming language "?
A Java virtual machine is a virtual machine process that can execute Java bytecode. Java source files are compiled into bytecode files executed by Java virtual machines.
Java is designed to allow applications to run on any platform without the need for pro
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.