当前位置:网站首页>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
边栏推荐
- Recursive structure
- (practice C language every day) pointer sorting problem
- Unity knapsack system (code to center and exchange items)
- Want to do something in production? Then try these redis commands
- Kiss number + close contact problem
- Buuctf QR code
- What is cloud primordial?
- Command Execution Vulnerability - command execution - vulnerability sites - code injection - vulnerability exploitation - joint execution - bypass (spaces, keyword filtering, variable bypass) - two ex
- Recent learning fragmentation (14)
- [development team follows] API specification
猜你喜欢
![[Wu Enda deep learning] beginner learning record 3 (regularization / error reduction)](/img/e9/818bdfeae766dca7d2318b52b4424d.jpg)
[Wu Enda deep learning] beginner learning record 3 (regularization / error reduction)

What are the conditions for the opening of Tiktok live broadcast preview?

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.

Have you entered the workplace since the first 00???

7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
![[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush](/img/98/3e5f1094141e34d7e77f908e12acda.jpg)
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush

WP collection plug-in free WordPress collection hang up plug-in

Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog

PID of sunflower classic

@Scheduled scheduled tasks
随机推荐
Practical multifunctional toolbox wechat applet source code / support traffic master
Sword finger offer:55 - I. depth of binary tree
@Scheduled scheduled tasks
ZABBIX API pulls the values of all hosts of a monitoring item and saves them in Excel
Bugku Zhi, you have to stop him
CSCI 2134
VRRP+BFD
Slurm view node configuration information
長文綜述:大腦中的熵、自由能、對稱性和動力學
Unity controls the selection of the previous and next characters
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
Crawler practice website image batch download
What is cloud primordial?
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
Contest3145 - the 37th game of 2021 freshman individual training match_ F: Smallest ball
warning: LF will be replaced by CRLF in XXXXXX
(column 23) typical C language problem: find the minimum common multiple and maximum common divisor of two numbers. (two solutions)
基於.NetCore開發博客項目 StarBlog - (14) 實現主題切換功能
Contest3145 - the 37th game of 2021 freshman individual training match_ 1: Origami
CSP drawing