Java8中,-XX:CMSInitiatingOccupancyFraction的默认值是92,详情见官网:

Starting a Concurrent Collection Cycle

With the serial collector a major collection occurs whenever the tenured generation becomes full and all application threads are stopped while the collection is done. In contrast, the start of a concurrent collection must be timed such that the collection can finish before the tenured generation becomes full; otherwise, the application would observe longer pauses due to concurrent mode failure. There are several ways to start a concurrent collection.

Based on recent history, the CMS collector maintains estimates of the time remaining before the tenured generation will be exhausted and of the time needed for a concurrent collection cycle. Using these dynamic estimates, a concurrent collection cycle is started with the aim of completing the collection cycle before the tenured generation is exhausted. These estimates are padded for safety, because concurrent mode failure can be very costly.

A concurrent collection also starts if the occupancy of the tenured generation exceeds an initiating occupancy (a percentage of the tenured generation). The default value for this initiating occupancy threshold is approximately 92%, but the value is subject to change from release to release. This value can be manually adjusted using the command-line option -XX:CMSInitiatingOccupancyFraction=<N>, where <N> is an integral percentage (0 to 100) of the tenured generation size.

https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/cms.html

-XX:CMSInitiatingOccupancyFraction=92 Java8相关推荐

  1. -XX:CMSInitiatingOccupancyFraction

    使用例子: -XX:CMSInitiatingOccupancyFraction=70 CMS垃圾收集器,当老年代达到70%时,触发CMS垃圾回收. 查看CMSInitiatingOccupancyF ...

  2. CMS收集器几个参数详解 -XX:CMSInitiatingOccupancyFraction, CMSFullGCsBeforeCompaction

    CMSInitiatingOccupancyFraction -XX:CMSInitiatingOccupancyFraction这个参数是指在使用CMS收集器的情况下,老年代使用了指定阈值的内存时, ...

  3. -XX:CMSInitiatingOccupancyFraction和-XX:+UseCMSInitiatingOccupancyOnly参数

    -XX:CMSInitiatingOccupancyFraction:在使用CMS收集器的情况下,指定老年代被使用的内存空间的阈值,达到该阈值则触发Full GC. -XX:+UseCMSInitia ...

  4. -XX:CMSInitiatingOccupancyFraction=70 和-XX:+UseCMSInitiatingOccupancyOnly

    CMS GC要决定是否在full GC时做压缩,会依赖几个条件.其中,  第一种条件,UseCMSCompactAtFullCollection 与 CMSFullGCsBeforeCompactio ...

  5. JVM -XX:CMSInitiatingOccupancyFraction=90 这个参数是有取值范围的

    CMSInitiatingOccupancyFraction值与Xmn的关系公式 promontion faild产生的原因是EDEN空间不足的情况下将EDEN与From survivor中的存活对象 ...

  6. java8堆内存模型_「GC系列」JVM堆内存分代模型及常见的垃圾回收器

    1. 内存分代模型 为什么要说JVM的内存分代模型呢,因为内存分代和垃圾回收器的运行是有关系的. 现在大部分用到的垃圾回收器在逻辑上是分代的,除了G1之外的其他垃圾回收器在逻辑上和物理上都是分代的. ...

  7. java 垃圾回收机制的理解

    1.垃圾回收的意义 在java体系中内存的分和回收是自动化管理的,从而程序员不需要操心内存的分配和是否浪费.javaGC机制能帮我们把不需要的对象占用的内存回收,保证程序高效的运行.由于我们创建的对象 ...

  8. Garbage Collection Optimization for High-Throughput and Low-Latency Java Applications--转载

    原文地址:https://engineering.linkedin.com/garbage-collection/garbage-collection-optimization-high-throug ...

  9. JVM - CMS深度剖析

    文章目录 Pre 概述 阶段 初始标记 (STW) 并发标记 (用户线程和GC线程并行工作) 重新标记 (STW) 并发清理(用户线程和GC线程并行工作) 并发重置 concurrent mode f ...

最新文章

  1. WMI技术介绍和应用——查询环境变量
  2. 比特币现金(BCH)是世界上最好货币的十大理由
  3. 上海浦发银行总行信息科技部大数据专家陈春宝:大数据与机器学习重塑零售银行业务...
  4. 我做的4周岁儿童编程课程【视频】分享
  5. oracle 触发器 merge,如何从触发器中解决Oracle变异错误
  6. SAP PP 中关于计划订单和生产订单的日期计算
  7. Rollback Protection
  8. R语言基础 训练营公告
  9. get 和 post请求的区别
  10. 关于无线网络中几个名词WPS,PSK,WPA,WPA2等名词的解释以及WPA的破解
  11. Windows 11 配置使用 Edge 浏览器的 IE 兼容模式(永久)
  12. 服务器硬盘数据备份到nas,谁说固态硬盘做存储是鸡肋?NAS存储服务器还能这样玩...
  13. nmp i报错git --no-replace-objects ls-remote
  14. STM32驱动W5100实现udp通信
  15. Manthan, Codefest 17 B. Marvolo Gaunt‘s Ring(线段树+思维)
  16. 【Ray】ray.remote和option
  17. 5GNR——RACH随机接入流程(1):随机接入的原因
  18. 数据恢复技术教程分享
  19. plc怎么与服务器无线通讯,两台PLC之间如何实现远程通讯
  20. java模拟文件上传并正则匹配返回路径

热门文章

  1. 前端考试答题,下一题,上一题
  2. Viro React: 使用React Native开发VR、AR程序
  3. Centos配置OpenVPN+OpenLDAP认证
  4. 计算机修改密码拒绝访问,拒绝访问
  5. HRBUST-1025-JiaoZhu and WAR3
  6. pyautogui控制鼠标
  7. 【软件测试】接口测试笔记3
  8. T45 LaTex特殊符号
  9. K-means算法和模糊C均值算法对比
  10. 小型酒店管理系统 java