当前位置:网站首页>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
边栏推荐
- Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
- [database I] database overview, common commands, view the table structure of 'demo data', simple query, condition query, sorting data, data processing function (single row processing function), groupi
- Recent learning fragmentation (14)
- Love and self-discipline and strive to live a core life
- Site favorites
- How much does it cost to open a futures account in China? Where is it safe to open an account at present?
- [Wu Enda deep learning] beginner learning record 3 (regularization / error reduction)
- Unspeakable Prometheus monitoring practice
- Practical multifunctional toolbox wechat applet source code / support traffic master
- Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
猜你喜欢
Database concept and installation
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
Problems and solutions of several concurrent scenarios of redis
Talking about custom conditions and handling errors in MySQL Foundation
Redis transaction
Webhook triggers Jenkins for sonar detection
Zhihu million hot discussion: why can we only rely on job hopping for salary increase? Bosses would rather hire outsiders with a high salary than get a raise?
Management and thesis of job management system based on SSM
SQL injection (1) -- determine whether there are SQL injection vulnerabilities
随机推荐
I stepped on a foundation pit today
Problems and solutions of several concurrent scenarios of redis
WordPress collection WordPress hang up collection plug-in
Unity controls the selection of the previous and next characters
PHP database connection succeeded, but data cannot be inserted
Add IDM to Google browser
A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
@Scheduled scheduled tasks
Management and thesis of job management system based on SSM
Pagoda SSL can't be accessed? 443 port occupied? resolvent
查詢效率提昇10倍!3種優化方案,幫你解决MySQL深分頁問題
[development team follows] API specification
基於.NetCore開發博客項目 StarBlog - (14) 實現主題切換功能
Base d'apprentissage de la machine: sélection de fonctionnalités avec lasso
Apple submitted the new MAC model to the regulatory database before the spring conference
VRRP+BFD
Have you entered the workplace since the first 00???
Li Chuang EDA learning notes IX: layers
How to use websocket to realize simple chat function in C #
Contest3145 - the 37th game of 2021 freshman individual training match_ 1: Origami