当前位置:网站首页>Some common instructions in JVM tuning
Some common instructions in JVM tuning
2022-07-27 04:24:00 【Baking soda】
Set up a garbage collector
-XX:+UseSerialGC: Using a serial collector
-XX:+UseParallelGC: Use parallel collectors
-XX:+UseParalledlOldGC: Using parallel generation collectors
-XX:+UseConcMarkSweepGC Use CMS The collector-XX:+UseG1GC Use G1 The collector
Heap settings
-Xms: Initial heap size
-Xmx: Maximum heap size
-XX:NewSize=n: Set the size of the new generation
-XX:NewRatio=n: Set the ratio of young generation to old generation .Such as : by 3, The ratio of young generation to old generation is 1:3,
-XX:SurvivorRatio=n: Young generation Eden District and two Survivor Area ratio .Be careful Survivor There are two. . Such as :3, Express Eden:Survivor=3:2, One Survivor District accounts for the whole young generation 1/5
-XX:MaxPermSize=n: Set persistent generation ( Meta space ) size
Garbage collector log
-XX:+PrintGC idea Output garbage collection information
-XX:+PrintGCDetails idea Output detailed garbage collection information
-XX:+PrintGCTimeStamps
-Xloggc:D:\ nailing \1.txt (filename) Print the log to the setting path
Parallel collector settings
-XX:ParallelGCThreads=n: Set the... Used by the parallel collector collection CPU Count . Number of parallel collection threads .
-XX:MaxGCPauseMillis=n: Set the maximum pause time for parallel collection (G1 Garbage collector can be used )
-XX:GCTimeRatio=n: Set the percentage of garbage collection time in the running time of the program . Formula for 1/(1+n)-XX:+UserAdaptiveSizePolicy Set up Parallel Scavenge The collector has an adaptive tuning strategy .
Concurrent collector settings
-XX:+CMSIncrementalMode: Set to incremental mode . Applicable to single CPU situation .
-XX:ParallelGCThreads=n: When setting the collection mode of the younger generation of the concurrent collector to parallel collection , The use of CPU Count . Number of parallel collection threads .
Judge OOM out of memory
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=d:\dump
边栏推荐
- 项目参数做成可配置项,@ConfigurationProperties注解的使用
- 标准C语言13
- Webpack packaging Vue project adds confusion to solve the cache problem
- Sum of binary numbers from root to leaf
- 法解析的外部符号 “public: virtual __cdecl nvinfer1::YoloLayerPlugin::~YoloLayerPlugin(void)“ “public: virtua
- 452 pages, 130000 words, the overall solution of modern smart Township Xueliang project 2022 Edition
- Deep analysis - dynamic memory management
- leetcode每日一题:数组的相对排序
- 记一次TCP丢包带来的重大性能问题
- Remember the major performance problems caused by a TCP packet loss
猜你喜欢

Subject 3: Jinan Zhangqiu line 2

tcp协议知识详解

Session&Cookie&token

Nacos启动与登录

Cool Lehman VR panorama paves the way for you to start a business

一张图看懂KingbaseES V9

Subject 3: Jinan Zhangqiu line 5

Delete the whole line of Excel, and delete the pictures together

技术分享 | 需要小心配置的 gtid_mode

法解析的外部符号 “public: virtual __cdecl nvinfer1::YoloLayerPlugin::~YoloLayerPlugin(void)“ “public: virtua
随机推荐
网工知识角|只需四个步骤,教会你使用SecureCRT连接到eNSP,常用工具操作指南必看
Daily question 1: delete continuous nodes with a total value of zero from the linked list
Okaleido tiger will log in to binance NFT in the second round, or continue to create sales achievements
Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化
Elastic认证考试:30天必过速通学习指南
微信小程序轮播图
Maximum nesting depth of parentheses
Session&Cookie&token
Interview question 16.05 factorial mantissa
Detailed explanation of TCP protocol knowledge
Subject 3: Jinan Zhangqiu line 3
Navicat exports Mysql to table structure and field description
BigDecimal pit summary & Best Practices
Rust:axum learning notes (1) Hello World
对NIO的初步理解
卷积神经网络——灰度图像的卷积
Elastic开源社区:开发者招募
Hash (hash)
项目参数做成可配置项,@ConfigurationProperties注解的使用
使用WebMvcConfigurer进行接口请求拦截进行中增强(附源码)