Common monitoring jvm commands
Common monitoring jvm commands
A pure smile
The command involved in this article is jps jstat jmap jstack jinfo
jps
Command format
jps [options] [hostid] [] optional
options parameter list
-l: output the full name of the main class or jar path-q: only LVMID(local virtual machine id) is output, that is, the unique id of the ...
Posted by ShadowBlade72 on Wed, 10 Nov 2021 01:45:23 -0800
Loaders such as JVM s
Class lifecycle
The first five steps together are the traditional whole process of class loading Among them, 2, 3 and 4 are collectively referred to as the link stage
Class loads and initializes
When the virtual machine is started, the main class specified by the user is initialized, which is the class where the main method is sta ...
Posted by intellivision on Thu, 04 Nov 2021 08:05:42 -0700
1001.3.jvm foundation 3JavaAgent_AboutObject
Using JavaAgent to test the size of objects
Author: Ma Bingbing http://www.mashibing.com
Object size (64 bit machine)
Observe virtual machine configuration
java -XX:+PrintCommandLineFlags -version
Common object
Object header: markword 8ClassPointer: - XX:+UseCompressedClassPointers is 4 bytes, not open is 8 bytesInstance data
Reference ...
Posted by SWI03 on Mon, 18 Oct 2021 10:37:39 -0700
JVM_ Memory management JMM
The class loader mentioned earlier. We all know that classes need to be loaded into memory. How much memory does this class need to occupy in memory? When we call a method, how does the JVM apply for memory and ensure data consistency?
Data consistency
Before understanding data consistency, first understand the CPU.
ALU: Calculation unit
Re ...
Posted by seidel on Fri, 15 Oct 2021 20:16:23 -0700
Spring MVC most detailed notes essential knowledge points
SpringMVC
1. What is spring MVC
Is a lightweight, MVC based web application layer framework that encapsulates servlets
MVC:
M: Model, the Model layer, refers to javaBean, which is used to = = process data==
javaBean:
Entity class, business processing, i.e. Service, Dao
V: View, the View layer, refers to html or jsp pages in the pro ...
Posted by shenmue232 on Sat, 09 Oct 2021 02:19:00 -0700
Interview must ask: Java garbage collection mechanism
Absrtact: the garbage collection mechanism is the best example of a daemon thread because it always runs in the background.
This article is shared from Huawei cloud community< This article takes you to understand the garbage collection mechanism in Java >, author: Hai Yong.
introduce
In C/C + +, programmers are responsible for the cre ...
Posted by purinkle on Mon, 27 Sep 2021 19:47:29 -0700
Concurrent Programming-07.Atominc Atom Package and Unsafe Magic Classes
1. Atominc Atom Package
There are 12 classes in the Atomic package, and there are four ways to update atoms: the basic type of atomic update, the array, the reference, and the field. The classes in the Atomic package are basically wrapper classes implemented using Unsafe.
Basic Classes: AtomicInteger, AtomicLong, AtomicBoolean
Reference type ...
Posted by Cragsterboy on Thu, 23 Sep 2021 09:10:56 -0700
Java JVM diagnostic tool Arthas
Java JVM diagnostic tool Arthas
https://arthas.aliyun.com/doc/ Official website
introduce
Arthas is an open source Java diagnostic tool of Alibaba, which is deeply loved by developers.
When you encounter the following similar problems and are helpless, Arthas can help you solve them:
Which jar package is this class loaded from? Why are al ...
Posted by Lexas on Mon, 20 Sep 2021 15:55:34 -0700
[JVM] JVM class loader
Class lifecycle
Loading: find the Class fileVerification: verify format and dependencyPreparation: static field and method tableResolution: resolve symbols to referencesInitialization: constructor, static variable assignment, static code blockUsingUnloading
Class loading timing
When the virtual machine starts, initialize the main class spe ...
Posted by phpmoron on Sun, 19 Sep 2021 22:34:31 -0700
java class loading subsystem (class loader) and parental delegation mechanism
Java class loading steps
1. Loading
The main task of the loading phase is to convert the classes in the. Class file into java.lang.Class objects. The specific steps are as follows:
Get the binary byte stream defining a class through the fully qualified name of the classThe static storage structure represented by this byte stream is tra ...
Posted by JasperBosch on Sun, 12 Sep 2021 18:31:59 -0700