当前位置:网站首页>JVM memory configuration parameter GC log
JVM memory configuration parameter GC log
2022-08-04 22:19:00 【Learning Micro Station】
GC log:
For JVM memory configuration parameters:
-Xmx10240m -Xms10240m -Xmn5120m -XXSurvivorRatio=3
-Xmx10240m: represents the maximum heap
-Xms10240m: represents the minimum heap, initial allocation
-Xmn5120m: represents the new generation
-XXSurvivorRatio=3: represents Eden:Survivor = 3 According to the Generation-Collection algorithm (the algorithm used by most JVMs at present), the heap memory is generally divided into several different areas according to the life cycle of the object.Divided into Eden, two Survivors; Calculate the size of Survivor, Eden: Survivor = 3, the total size is 5120, 3x+x+x=5120 x=1024
Most of the new generation needs to be recycled, using the Copying algorithm, fast!
Most of the old age do not need to be recycled, and the Mark-Compact algorithm is used
You can use this command to set the java running memory when running the jar program:
java -Xms2048m -Xmx2048m -Xmn512m -jar XXXX.jar
https://blog.csdn.net/m0_47914176/article/details/123706946
-Xss1m: The stack size in the HotSpot version is fixed and does not support expansion.java.lang.StackOverflowError
The general method call is difficult to appear, if it appears, it may be infinite recursion
-XX:MetaspaceSize=256M: The initialization threshold for triggering FullGC when Metaspace is expanded, which is also the minimum threshold
-XX:MetaspaceSize: Set the size of the metaspace
-XX:MaxMetaspaceSize: Set the maximum size of the metaspace
-XX:+UseParNewGC: will be automatically activated with concurrent lifetime generation garbage collection
-XX:+UseConcMarkSweepGC: concurrent mark sweep, i.e. use CMS collector
-XX:+PrintGCDetails: print gc details
-Xloggc:gc.log: Output the GC log to the gc.log file
The -XX:+HeapDumpOnOutOfMemoryError parameter indicates that when the JVM occurs OOM, the DUMP file is automatically generated
When using -XX:HeapDumpPath configuration, you need to ensure that the folders of the directory exist, because it will not help you to create non-existing directories when dumping files everywhere.
边栏推荐
- 基于声卡实现的音频存储示波器,可作为电磁学实验的测量仪表
- The Record of Reminding myself
- Qt面试题整理
- SQL Server 调用 WebService
- OC-协议
- 【线性代数03】消元法展示以及AX=b的4种解情况
- Debian防火墙的开关以及状态
- LeetCode 199: 二叉树的右视图
- DREAMWEAVER8 部分问题解决方案
- How to solve the problem that the alarm information cannot be transmitted after EasyGBS is connected to the latest version of Hikvision camera?
猜你喜欢

Charles & TCPDump & Fiddler 抓包三兄弟七夕联手,还抓不到你的心?

驱动点云格式修改带来的效率提升

Altium Designer 19.1.18 - Protecting Locked Objects

Use ngrok to optimize web pages on raspberry pi (1)
![MQTT[一]基础知识介绍](/img/25/3ba24127e2258902b2d5ecc7c3727b.png)
MQTT[一]基础知识介绍

EasyGBS接入最新版海康摄像头后无法传递告警信息该如何解决?

力扣24-两两交换链表中的节点——链表

rk3399-9.0 first-level and second-level dormancy

Lecture 2 Software Life Cycle

湖仓一体电商项目(五):内网穿透工具-网云穿
随机推荐
边缘检测——(纯享版)
Is the International Project Manager PMP certificate worth taking?
阿里巴巴2022届秋招面试真题和答案!
三个多月、40余场面试浓缩为6000字
信创是什么意思?涉及哪些行业?为什么要发展信创?
Qt面试题整理
PowerBI真经连续剧
OC-拷贝
【模拟面试-10年工作】项目多一定是优势吗?
The upgrade and transformation plan of the fortress machine for medium and large commercial banks!Must see!
【组成原理 六 存储器类型】
MQTT[一]基础知识介绍
rk3399-9.0一级二级休眠
视频gif如何制作?试试这个视频制作gif神器
idea 仓库地址连接不上问题
【2020】【论文笔记】超表面:多功能和可编程——
Redis understanding
国际项目管理师PMP证书,值得考嘛?
湖仓一体电商项目(五):内网穿透工具-网云穿
Qiangwang Cup 2022 - WEB