当前位置:网站首页>JVM参数设置
JVM参数设置
2022-08-03 17:14:00 【lcy2023】
Xms 起始内存
Xmx 最大内存
Xmn 新生代内存
Xss 栈大小。 就是创建线程后,分配给每一个线程的内存大小
-XX:NewRatio=n:设置年轻代和年老代的比值。如:为3,表示年轻代与年老代比值为1:3,年轻代占整个年轻代年老代和的1/4
-XX:SurvivorRatio=n:年轻代中Eden区与两个Survivor区的比值。注意Survivor区有两个。如:3,表示Eden:Survivor=3:2,一个Survivor区占整个年轻代的1/5
-XX:MaxPermSize=n:设置持久代大小
收集器设置
-XX:+UseSerialGC:设置串行收集器
-XX:+UseParallelGC:设置并行收集器
-XX:+UseParalledlOldGC:设置并行年老代收集器
-XX:+UseConcMarkSweepGC:设置并发收集器
垃圾回收统计信息
-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Xloggc:filename
并行收集器设置
-XX:ParallelGCThreads=n:设置并行收集器收集时使用的CPU数。并行收集线程数。
-XX:MaxGCPauseMillis=n:设置并行收集最大暂停时间
-XX:GCTimeRatio=n:设置垃圾回收时间占程序运行时间的百分比。公式为1/(1+n)
并发收集器设置
-XX:+CMSIncrementalMode:设置为增量模式。适用于单CPU情况。
-XX:ParallelGCThreads=n:设置并发收集器年轻代收集方式为并行收集时,使用的CPU数。并行收集线程数。
边栏推荐
猜你喜欢
J9数字虚拟论:元宇宙的潜力:一股推动社会进步的力量
【指针初解】
#yyds干货盘点# 面试必刷TOP101:两个链表的第一个公共结点
LeetCode·1163.按字典序排在最后的子串·最小表示法
EasyExcel实现动态列解析和存表
CC2530_ZigBee+华为云IOT:设计一套属于自己的冷链采集系统
多表查询最值
Huawei, Lenovo, BAIC, etc. were selected as the first batch of training bases for "Enterprise Digital Transformation and Security Capability Improvement" by the Ministry of Industry and Information Te
three.js简介
[Unity Getting Started Plan] Basic Concepts (7) - Input Manager & Input Class
随机推荐
国内首发可视化智能调优平台,小龙带你玩转KeenTune UI
[Unity Starter Plan] Making RubyAdventure01 - Player Creation & Movement
大型企业数据治理的现状和解决方案有哪些参考?_光点科技
[Unity Getting Started Plan] Basic Concepts (7) - Input Manager & Input Class
uniapp 去掉默认导航栏
How to write SQL statements in DataWorks monitoring data reaches a certain value to indicate the change of
CC2530_ZigBee+华为云IOT:设计一套属于自己的冷链采集系统
The strongest distributed lock tool: Redisson
JVS低代码移动端接入方案
生产环境如何删除表呢?只能在SQL脚本里执行 drop table 吗
EasyExcel实现动态列解析和存表
Excuse me this hologres dimension table is cached?How to Finished
工程仪器设备在线监测管理系统常见问题和注意事项
论文解读(JKnet)《Representation Learning on Graphs with Jumping Knowledge Networks》
设置海思芯片MMZ内存、OS内存详解
请问下这个hologres维表是被缓存了么?怎么直接Finished了
JSON.stringify()的深入学习和理解
酷开科技 × StarRocks:统一 OLAP 分析引擎,全面打造数字化的 OTT 模式
【数仓】数据质量监控
【engine】RtcSyncCallback回调、回调容器RtcCallbackContainer及MediaPacketSenderImpl 中回调使用