当前位置:网站首页>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
边栏推荐
- What are the virtual machine software? What are their respective functions?
- Contest3145 - the 37th game of 2021 freshman individual training match_ G: Score
- Safety tips - seat belt suddenly fails to pull? High speed police remind you how to use safety belts in a standardized way
- MySQL query
- MySQL is dirty
- 查詢效率提昇10倍!3種優化方案,幫你解决MySQL深分頁問題
- Site favorites
- Redis transaction
- [UE4] parse JSON string
- Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau
猜你喜欢

SQL injection (1) -- determine whether there are SQL injection vulnerabilities

The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult

National standard gb28181 protocol platform easygbs fails to start after replacing MySQL database. How to deal with it?

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.

Unspeakable Prometheus monitoring practice

What is cloud primordial?

Add token validation in swagger

Recursive structure

Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau

A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
随机推荐
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
Site favorites
system information
Unspeakable Prometheus monitoring practice
Baijia forum the founding of the Eastern Han Dynasty
PTA tiantisai l1-079 tiantisai's kindness (20 points) detailed explanation
Basé sur... Netcore Development blog Project Starblog - (14) Implementation of theme switching function
What is the difference between enterprise wechat applet and wechat applet
No clue about the data analysis report? After reading this introduction of smartbi, you will understand!
WP collection plug-in free WordPress collection hang up plug-in
Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics
PID of sunflower classic
Unity controls the selection of the previous and next characters
Sword finger offer:55 - I. depth of binary tree
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
Talking about custom conditions and handling errors in MySQL Foundation
Leetcode51.n queen
Contest3145 - the 37th game of 2021 freshman individual training match_ F: Smallest ball
Kiss number + close contact problem
Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog