当前位置:网站首页>JVM family -- monitoring tools
JVM family -- monitoring tools
2022-07-04 03:24:00 【Li Meng LM】
stay linux In the environment
One .uptime

system time , The elapsed time
The number of connections :
Each terminal is a connection
1,5,15 Average system load in minutes
Average number of processes in the run queue
Two .vmstat
Can count the system's CPU, Memory ,swap,io , etc.
vmstat 1 4
3、 ... and .top
cpu Memory
Each process takes up CPU situation
Four .pidstat
monitor CPU,IO, Memory

-p Specify process –u monitor CPU Samples per second altogether 3 Time -t Show threads

TID Threads id CPU Which core
5、 ... and .windows
Task manager :cpu ,io
perfmon
pslist: Show java The operation of the program
6、 ... and .java Bring their own tools
1.jps
List java process , -q Only output processes id -m Output Java process ( The main function ) Parameters of -l Can be used to output the full path of the main function -v Can be displayed and passed to JVM Parameters of
2.jinfo
see java Extension parameters for the application
-flag <name>: Print assignments JVM Parameter values for
-flag [+|-]<name>: Set the specified JVM Boolean value of parameter
-flag <name>=<value>: Set the specified JVM The value of the parameter
jinfo -flag PrintGCDetails 2972
3.jmap
Generate java Heap snapshots of applications and statistics of objects
4.jstack
Print thread dump
-l Print lock information -m Print java and native Frame information of -F mandatory dump, When jstack Use when there is no response
5.JConsole
Graphical monitoring tools
You can see Java Running overview of the application , Monitoring heap information 、 Use of permanent areas 、 Class loading, etc
6.Visual VM
Visual VM It is a powerful visual tool for multi in one fault diagnosis and performance monitoring
7、 ... and . Example
Run a program ThreadBlockMain, Expected output Hello,World , The result is after the program runs , Program stuck , No expected output .
1.jps View program progress
2.jstack Output dump
3.top View occupancy cpu Most of the processes id
4.pidstat Check the process id The next thread is occupied cpu most ,TID Threads id convert to 16 Base number ,nid
5.jstack process id Output information , lookup nid, Location problem
边栏推荐
- Examination question bank of constructor decoration direction post skills (constructor) and examination data of constructor decoration direction post skills (constructor) in 2022
- Tsinghua University product: penalty gradient norm improves generalization of deep learning model
- Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram
- what does ctrl + d do?
- Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.
- 2022 examination summary of quality controller - Equipment direction - general basis (quality controller) and examination questions and analysis of quality controller - Equipment direction - general b
- PHP database connection succeeded, but data cannot be inserted
- [untitled] the relationship between the metauniverse and digital collections
- Bugku Zhi, you have to stop him
- Enhanced for loop
猜你喜欢

7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages

Lichuang EDA learning notes 14: PCB board canvas settings

MySQL workbench use

Explain AI accelerator in detail: why is this the golden age of AI accelerator?

Rhcsa day 3

Package details_ Four access control characters_ Two details of protected

What are the virtual machine software? What are their respective functions?

Tsinghua University product: penalty gradient norm improves generalization of deep learning model

Code Execution Vulnerability - no alphanumeric rce create_ function()

Have you entered the workplace since the first 00???
随机推荐
AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用
Optimization theory: definition of convex function + generalized convex function
Crawler practice website image batch download
In my spare time, I like to write some technical blogs and read some useless books. If you want to read more of my original articles, you can follow my personal wechat official account up technology c
Latex tips slash \backslash
Buuctf QR code
System integration meets the three business needs of enterprises
CSP drawing
Record a problem that soft deletion fails due to warehouse level error
Constantly changing harmonyos custom JS components during the Spring Festival - Smart Koi
Kiss number + close contact problem
[UE4] parse JSON string
Examination question bank of constructor decoration direction post skills (constructor) and examination data of constructor decoration direction post skills (constructor) in 2022
[latex] production of complex tables: excel2latex and detail adjustment
Contest3145 - the 37th game of 2021 freshman individual training match_ F: Smallest ball
Résumé des outils communs et des points techniques de l'examen PMP
2022 registration examination for safety production management personnel of fireworks and firecracker production units and examination skills for safety production management personnel of fireworks an
MySQL backup notes
What is cloud primordial?
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)