当前位置:网站首页>JVM - common parameters
JVM - common parameters
2022-04-22 04:46:00 【Xiaoxian.】
One 、 Parameter query
perform :
java -XX:+PrintFlagsFinal
Be careful :
= Represents the default value
:= Said by JVM Or the value modified by the user

Two 、 Parameter classification
1、 Standard parameters
-version
-help
-server
-cp

2、-X Parameters ( Nonstandard ,JDK There may be changes in various versions )
-Xint Explain to perform
-Xcomp Compile it into local code for the first time
-Xmixed Mixed mode ,JVM Decide for yourself

3、-XX Parameters ( Nonstandard , Relatively unstable , It is mainly used for JVM tuning )
1)Boolean type
Format :
-XX:[+-]<name>
Be careful :
+ Means to enable name attribute
+ - Disable name attribute
Example :
-XX:+UseConcMarkSweepGC Means to enable CMS Type of garbage collector
-XX:+UseG1GC Means to enable G1 Type of garbage collector
2) Not Boolean type
Format :
-XX<name>=<value>
Be careful :
name The value of the property is value
Example :
-XX:MaxGCPauseMillis=500
4、 The other parameters ( Short for parameters )
-Xms1000M Equivalent to -XX:InitialHeapSize=1000M
-Xmx1000M Equivalent to -XX:MaxHeapSize=1000M
-Xss100 Equivalent to -XX:ThreadStackSize=100
3、 ... and 、 Common parameters

Four 、 Common ways to set parameters
1、 development tool :IDEA,eclipse
2、 function jar:java -XX:+UseG1GC xxx.jar
3、Web Containers :tomcat Script
4、 adopt jinfo Adjust something in real time java Process parameters ( The parameter is only marked manageable Of flags Can be modified in real time )
版权声明
本文为[Xiaoxian.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210804555684.html
边栏推荐
- 仿真生成随机数计算生成每个同学生日
- 2022 a special equipment related management (elevator) retraining question bank and answers
- pycharm+anaconda安装包
- 2022年A特种设备相关管理(电梯)复训题库及答案
- 2022p cylinder filling test question bank and simulation test
- 【板栗糖GIS】arcmap—如何制作带缓冲区的图幅结合表
- Common commands of labelme
- 线程池状态+ThreadPoolExecutor
- Pycharm + Anaconda installation package
- win10卡顿修复
猜你喜欢

【板栗糖GIS】arcmap—模型构造器—批量裁剪栅格数据

crypto-js加密算法库【安装教程、缓存加密】

2022 a special equipment related management (elevator) retraining question bank and answers
![[twelfth database operation - stored procedure]](/img/8f/5ca161db5ffb465dddb9d423418fad.png)
[twelfth database operation - stored procedure]
Apple plans to expand children's information and communication security features to the UK and Canada
![C language simple [stack and queue] (bracket matching problem)](/img/3d/092daf5d4896aabaf12d34497fe643.png)
C language simple [stack and queue] (bracket matching problem)

2022年P气瓶充装培训试题及答案

First knowledge of UI automation (inspect.exe + uiautomation)
![[stack and queue] simple application of C language ⌊ stack and queue realize each other, circular queue ⌉](/img/ac/d0d76fd109a53da73c624631f90c00.png)
[stack and queue] simple application of C language ⌊ stack and queue realize each other, circular queue ⌉

Kaggle Real Game 4.1 - Time Series Prediction Problem
随机推荐
安装opencv时遇到的报错
6_ Data analysis modeling
2022P气瓶充装考试题库及模拟考试
SCI paper writing -- word template of IEEE Journal (also available in latex)
22.4.21学习感悟
C-随手写10
2022a special equipment related management (elevator) test question simulation test question bank simulation test platform operation
创意几何点线面三角形孟菲斯海报banneer广告设计ai矢量背景素材
2022 Shandong Province safety officer C certificate examination questions and online simulation examination
[twelfth database operation - stored procedure]
Inotify Brief
Matlab曲线的颜色、线型等参数设置方法
【S32K3_STM&PIT_MCAL】
ES next相关
Cilcate environment construction
Leetcode sword finger offer 22 The penultimate node in the linked list
Climb the actor's name and add a link
Sort one
Es next related
pycharm+anaconda安装包