当前位置:网站首页>JVM directive
JVM directive
2022-06-25 01:17:00 【cavalier_ seven hundred and ninety-eight】
JVM Common commands _Pluto372 The blog of -CSDN Blog _jvm command
Article reference above
1.jps
View the current JAVA process

For example, start the backend project locally 18912 This is the process of the back-end project PID
2.jinfo
Java Configuration Info, Its main function is to view and adjust in real time JVM Configuration parameters .
Output JAVA System parameters and command line parameters .
jinfo 18912 You can view it
3.jstack
It is mainly used to check Java In process thread stack information ."jstack pid" --- pid For process number , Can pass jps perhaps ps Command to find , It can be used to analyze the deadlock problem
4.jstat:
It's mainly about java Real time command line monitoring of application resources and performance , Yes, yes. heap size And garbage collection monitoring
jstat -gcutil 18912
S0 S1 E O M CCS YGC YGCT FGC FGCT GCT
0.00 99.96 44.08 8.92 97.67 96.69 13 0.096 3 0.272 0.369
S0 — Heap Upper Survivor space 0 Percentage of space used in area
S1 — Heap Upper Survivor space 1 Percentage of space used in area
E — Heap Upper Eden space Percentage of space used in area
O — Heap Upper Old space Percentage of space used in area
P — Perm space Percentage of space used in area
ccs: Usage after compression
YGC — Occurs from application startup to sampling Young GC The number of times
YGCT– From application startup to sampling Young GC Time spent ( Unit second ) Time consuming
FGC — Occurs from application startup to sampling Full GC The number of times
FGCT– From application startup to sampling Full GC Time spent ( Unit second ) Time consuming
GCT — Total time spent garbage collection from application startup to sampling ( Unit second ) GC Total time consuming
jstat -gc 18912
A detailed description
S0C
The first of the young generation survivor( Survival zone ) The capacity of ( byte )
S1C
The second of the younger generation survivor( Survival zone ) The capacity of ( byte )
S0U
The first of the young generation survivor( Survival zone ) Space has been used ( byte )
S1U
The second of the younger generation survivor( Survival zone ) Space has been used ( byte )
EC
Young generation Eden( The garden of Eden ) The capacity of ( byte )
EU
Young generation Eden( The garden of Eden ) Space has been used ( byte )
OC
Old Generation capacity ( byte )
OU
Old Generation has used space at present ( byte )
PC
Perm( Lasting generation ) The capacity of ( byte )
PU
Perm( Lasting generation ) Space has been used ( byte )
YGC
From application startup to sampling in the younger generation gc frequency
YGCT
From application startup to sampling in the younger generation gc Time spent (s)
FGC
From application startup to sampling old generation ( whole gc)gc frequency
FGCT
From application startup to sampling old generation ( whole gc)gc Time spent (s)
GCT
From application startup to sampling gc The total time spent (s)
5.jmap
jmap yes JDK The tool software that comes with me , Mainly used to print specified Java process ( Or core documents 、 Remote debugging server ) Shared object memory mapping or Heap memory details
边栏推荐
- 数组中关于sizeof()和strlen
- Scala adapter pattern
- 图片旋转移动缩放渐变
- Add information on the left and add parts on the right of the status bar
- Tencent moved!
- Tianshu night reading notes -- memory paging mechanism
- Scala classes inherit multiple attributes
- [practical series] full WiFi coverage at home
- How about compass stock trading software? Is it safe?
- Bi-sql delete
猜你喜欢

LLVM TargetPassConfig

15. several methods of thread synchronization

Rich text tables, lists, pictures

Bi-sql Union

Powerbi - for you who are learning

TC对象结构和简称

汇编语言(4)函数传参

Deep learning LSTM model for stock analysis and prediction

Assembly language (3) 16 bit assembly basic framework and addition and subtraction loop

Bi-sql delete
随机推荐
How to store dataframe data in pandas into MySQL
数组中关于sizeof()和strlen
利用 Redis 的 sorted set 做每周热评的功能
Scala trait inheritance class
ContentResolver,拿到手机短信内容
Scala sample class
Bi-sql create
Bi-sql - different join
Powerbi - for you who are learning
51 single chip microcomputer multi computer communication
VB learning notes
Deploy a production cluster using Loki microservice pattern
Scala trait exercise
Linux64Bit下安装MySQL5.6-不能修改root密码
腾讯云WeCity丨你好 2022!
Lenovo tongfuyao: 11 times the general trend, we attacked the city and pulled out the stronghold all the way
Rich text tables, lists, pictures
腾讯完成全面上云 打造国内最大云原生实践
“一个优秀程序员可抵五个普通程序员!”
丹麦技术大学首创将量子计算应用于能源系统潮流建模