qps 10,0000

-Xms10240m -Xmx10240m -XX:NewRatio=5 -XX:SurvivorRatio=6

2017-12-19T15:10:14.539+0800: 1367.601: [Full GC (System.gc()) [PSYoungGen: 7360K->0K(1692672K)] [ParOldGen: 4526697K->2650995K(8738304K)] 4534057K->2650995K(10430976K), [Metaspace: 55233K->55199K(1097728K)], 20.0808391 secs] [Times: user=346.64 sys=1.01, real=20.08 secs]

2017-12-19T15:25:01.865+0800: 2254.927: [GC (Allocation Failure)
Desired survivor size 129499136 bytes, new threshold 15 (max 15)
[PSYoungGen: 1590535K->97974K(1618944K)] 4895352K->3409752K(10357248K), 0.1417415 secs] [Times: user=2.53 sys=0.00, real=0.15 secs]
2017-12-19T15:25:09.902+0800: 2262.964: [GC (Allocation Failure)
Desired survivor size 128450560 bytes, new threshold 15 (max 15)
[PSYoungGen: 1589430K->97344K(1622016K)] 4901208K->3416001K(10360320K), 0.1374235 secs] [Times: user=2.44 sys=0.01, real=0.14 secs]
2017-12-19T15:25:17.940+0800: 2271.002: [GC (Allocation Failure)
Desired survivor size 127401984 bytes, new threshold 15 (max 15)
[PSYoungGen: 1592896K->97063K(1620992K)] 4911553K->3422576K(10359296K), 0.1358406 secs] [Times: user=2.42 sys=0.00, real=0.13 secs]
2017-12-19T15:25:25.986+0800: 2279.048: [GC (Allocation Failure)
Desired survivor size 126353408 bytes, new threshold 15 (max 15)
[PSYoungGen: 1592615K->97127K(1624064K)] 4918128K->3429352K(10362368K), 0.1456303 secs] [Times: user=2.60 sys=0.00, real=0.15 secs]
2017-12-19T15:25:34.028+0800: 2287.091: [GC (Allocation Failure)
Desired survivor size 125304832 bytes, new threshold 15 (max 15)
[PSYoungGen: 1596775K->96871K(1623040K)] 4929000K->3435872K(10361344K), 0.1372397 secs] [Times: user=2.43 sys=0.00, real=0.14 secs]
2017-12-19T15:25:42.068+0800: 2295.130: [GC (Allocation Failure)
Desired survivor size 124256256 bytes, new threshold 15 (max 15)
[PSYoungGen: 1596519K->96208K(1626112K)] 4935520K->3442089K(10364416K), 0.1396860 secs] [Times: user=2.49 sys=0.00, real=0.14 secs]
2017-12-19T15:25:50.109+0800: 2303.172: [GC (Allocation Failure)
Desired survivor size 123207680 bytes, new threshold 15 (max 15)
[PSYoungGen: 1599952K->95383K(1625088K)] 4945833K->3448248K(10363392K), 0.1401272 secs] [Times: user=2.49 sys=0.00, real=0.14 secs]
2017-12-19T15:25:58.298+0800: 2311.360: [GC (Allocation Failure)
Desired survivor size 122159104 bytes, new threshold 15 (max 15)
[PSYoungGen: 1599127K->94967K(1628160K)] 4951992K->3454720K(10366464K), 0.1399527 secs] [Times: user=2.50 sys=0.00, real=0.14 secs]

老年代增长较快,这样迟早fgc

先增大年轻代,去掉 NewRatio=5参数。

2017-12-19T15:51:00.319+0800: 1389.258: [GC (System.gc())
Desired survivor size 106430464 bytes, new threshold 5 (max 15)
[PSYoungGen: 3225198K->65680K(3358208K)] 8075272K->4915755K(10349056K), 0.1640097 secs] [Times: user=2.92 sys=0.00, real=0.17 secs]
2017-12-19T15:51:00.483+0800: 1389.422: [Full GC (System.gc()) [PSYoungGen: 65680K->0K(3358208K)] [ParOldGen: 4850074K->2647118K(6990848K)] 4915755K->2647118K(10349056K), [Metaspace: 54890K->54864K(1097728K)], 15.6776634 secs] [Times: user=269.48 sys=0.69, real=15.67 secs]
2017-12-19T15:51:34.253+0800: 1423.192: [GC (Allocation Failure)
Desired survivor size 106430464 bytes, new threshold 6 (max 15)
[PSYoungGen: 3292160K->5914K(3390976K)] 5939278K->2653032K(10381824K), 0.0492608 secs] [Times: user=0.86 sys=0.00, real=0.05 secs]
2017-12-19T15:51:52.419+0800: 1441.358: [GC (Allocation Failure)
Desired survivor size 104333312 bytes, new threshold 7 (max 15)
[PSYoungGen: 3292954K->10801K(3390976K)] 5940072K->2657919K(10381824K), 0.0779235 secs] [Times: user=1.38 sys=0.01, real=0.08 secs]
2017-12-19T15:52:11.501+0800: 1460.440: [GC (Allocation Failure)
Desired survivor size 101187584 bytes, new threshold 8 (max 15)
[PSYoungGen: 3297841K->16369K(3396096K)] 5944959K->2663495K(10386944K), 0.0874535 secs] [Times: user=1.50 sys=0.05, real=0.09 secs]
2017-12-19T15:52:30.599+0800: 1479.538: [GC (Allocation Failure)
Desired survivor size 96468992 bytes, new threshold 9 (max 15)
[PSYoungGen: 3310577K->20593K(3393024K)] 5957703K->2667719K(10383872K), 0.0793526 secs] [Times: user=1.39 sys=0.00, real=0.08 secs]
2017-12-19T15:52:49.692+0800: 1498.631: [GC (Allocation Failure)
Desired survivor size 92274688 bytes, new threshold 10 (max 15)
[PSYoungGen: 3314801K->22730K(3404800K)] 5961927K->2669856K(10395648K), 0.0939741 secs] [Times: user=1.66 sys=0.00, real=0.09 secs]

fgc后,内存几乎停止增长:

[PSYoungGen: 3297841K->16369K(3396096K)] 5944959K->2663495K(10386944K), 0.0874535 secs] [Times: user=1.50 sys=0.05, real=0.09 secs]
2017-12-19T15:52:30.599+0800: 1479.538: [GC (Allocation Failure)
Desired survivor size 96468992 bytes, new threshold 9 (max 15)
[PSYoungGen: 3310577K->20593K(3393024K)] 5957703K->2667719K(10383872K), 0.0793526 secs] [Times: user=1.39 sys=0.00, real=0.08 secs]
2017-12-19T15:52:49.692+0800: 1498.631: [GC (Allocation Failure)
Desired survivor size 92274688 bytes, new threshold 10 (max 15)
[PSYoungGen: 3314801K->22730K(3404800K)] 5961927K->2669856K(10395648K), 0.0939741 secs] [Times: user=1.66 sys=0.00, real=0.09 secs]
2017-12-19T15:53:08.790+0800: 1517.728: [GC (Allocation Failure)
Desired survivor size 87031808 bytes, new threshold 11 (max 15)
[PSYoungGen: 3333322K->25591K(3400704K)] 5980448K->2672717K(10391552K), 0.0858242 secs] [Times: user=1.51 sys=0.00, real=0.09 secs]
2017-12-19T15:53:27.890+0800: 1536.829: [GC (Allocation Failure)
Desired survivor size 82313216 bytes, new threshold 12 (max 15)
[PSYoungGen: 3336183K->26599K(3414528K)] 5983309K->2673725K(10405376K), 0.1071549 secs] [Times: user=1.90 sys=0.00, real=0.11 secs]
2017-12-19T15:53:46.991+0800: 1555.930: [GC (Allocation Failure)
Desired survivor size 77594624 bytes, new threshold 13 (max 15)
[PSYoungGen: 3356135K->27079K(3409920K)] 6003261K->2674205K(10400768K), 0.1019614 secs] [Times: user=1.80 sys=0.00, real=0.10 secs]
2017-12-19T15:54:07.062+0800: 1576.001: [GC (Allocation Failure)
Desired survivor size 73400320 bytes, new threshold 14 (max 15)
[PSYoungGen: 3356615K->27463K(3423232K)] 6003741K->2674589K(10414080K), 0.1016985 secs] [Times: user=1.79 sys=0.00, real=0.10 secs]
2017-12-19T15:54:26.277+0800: 1595.216: [GC (Allocation Failure)
Desired survivor size 69730304 bytes, new threshold 15 (max 15)
[PSYoungGen: 3374919K->27671K(3419136K)] 6022045K->2674797K(10409984K), 0.1029666 secs] [Times: user=1.83 sys=0.00, real=0.10 secs]
2017-12-19T15:54:45.387+0800: 1614.325: [GC (Allocation Failure)
Desired survivor size 66060288 bytes, new threshold 15 (max 15)
[PSYoungGen: 3375127K->27815K(3430400K)] 6022253K->2674941K(10421248K), 0.1081986 secs] [Times: user=1.92 sys=0.00, real=0.10 secs]

说明从年轻代提升到老年代的非常少,大部分都在年轻代被回收掉了。

gc 调优记录的更多相关文章

  1. GC参考手册 —— GC 调优(基础篇)

    GC调优(Tuning Garbage Collection)和其他性能调优是同样的原理.初学者可能会被 200 多个 GC参数弄得一头雾水, 然后随便调整几个来试试结果,又或者修改几行代码来测试.其 ...

  2. GC参考手册 —— GC 调优(工具篇)

    JVM 在程序执行的过程中, 提供了GC行为的原生数据.那么, 我们就可以利用这些原生数据来生成各种报告.原生数据(raw data) 包括: 各个内存池的当前使用情况, 各个内存池的总容量, 每次G ...

  3. 性能测试系列-java gc调优

    性能测试中除了需要做好性能测试外,我们还需要做性能测试后的,性能调优,需要发现性能问题,也需要做性能调优,在做性能调优中,jvm的性能调优是经常遇到的一个. 随着jdk版本的迅速变化,jdk里面的GC ...

  4. GC调优在Spark应用中的实践(转载)

    Spark是时下非常热门的大数据计算框架,以其卓越的性能优势.独特的架构.易用的用户接口和丰富的分析计算库,正在工业界获得越来越广泛的应用.与Hadoop.HBase生态圈的众多项目一样,Spark的 ...

  5. GC调优入门笔记

    想给项目代码做做调优但有许多疑惑,比如有哪些参数要调.怎么调.使用什么工具.调优的效果如何定量测量等.发现Oracle的这份资料不错,简洁直接,回答了我的许多问题,给了许多很实用的大方向上的指导.将其 ...

  6. GC调优在Spark应用中的实践[转]

    作者:仲浩   出处:<程序员>电子刊5月B   摘要:Spark立足内存计算,常常需要在内存中存放大量数据,因此也更依赖JVM的垃圾回收机制.与此同时,它也兼容批处理和流式处理,对于程序 ...

  7. 6. GC 调优(工具篇) - GC參考手冊

    进行GC性能调优时, 须要明白了解, 当前的GC行为对系统和用户有多大的影响. 有多种监控GC的工具和方法, 本章将逐一介绍经常使用的工具. 您应该已经阅读了前面的章节: 垃圾收集简单介绍 - GC參 ...

  8. JVM系列(四)之GC调优

    JVM内存参数调优 为什么要GC调优? 或者说的更确切一些,对于基于Java的服务,是否有必要优化GC?应该说,对于所有的基于Java的服务,并不总是需要进行GC优化,但当你的系统时常报了内存溢出或者 ...

  9. 一张PDF了解JDK9 GC调优秘籍-附PDF下载

    目录 简介 Oracle中的文档 JDK9中JVM参数的变化 废弃的JVM选项 不推荐(Deprecated)的JVM选项 被删除的JVM参数 JDK9的新特性Application Class Da ...

随机推荐

  1. 【BZOJ4755】扭动的回文串(Manacher,哈希)

    [BZOJ4755]扭动的回文串(Manacher,哈希) 题面 BZOJ 题解 不要真的以为看见了回文串就是\(PAM,Manacher\)一类就可以过. 这题显然不行啊. 我们主要考虑如何解决跨串 ...

  2. 洛谷 P3241 [HNOI2015]开店 解题报告

    P3241 [HNOI2015]开店 题目描述 风见幽香有一个好朋友叫八云紫,她们经常一起看星星看月亮从诗词歌赋谈到人生哲学.最近她们灵机一动,打算在幻想乡开一家小店来做生意赚点钱. 这样的想法当然非 ...

  3. CentOS7.4 删除virbr0虚拟网卡

    在CentOS 7的安装过程中如果有选择相关虚拟化的的服务安装系统后,启动网卡时会发现有一个以网桥连接的私网地址的virbr0网卡,这个是因为在虚拟化中有使用到libvirtd服务生成的,如果不需要可 ...

  4. Linux内核设计与实现第五周读书笔记

    第十八章 调试 18.1准备开始 需要的只是: 一个确定的bug.大部分bug通常都不是行为可靠而且定义明确的. 一个藏匿bug的内核版本. 相关的内核代码的知识和运气. 18.2内核中的bug 内核 ...

  5. linux swap交换分区配置

    参考 http://commandos.blog.51cto.com/154976/115288/

  6. 在 Xamarin.Forms 实现密码输入EntryCell

    在 Xamarin.Forms 中,我们通常使用 TableView 来构建输入表单.Xamarin 为我们提供了 EntryCell 用于输入文本,但是其并不支持密码输入,即密码掩码.这里要对 En ...

  7. poj3421 X-factor Chains

    X-factor Chains Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7733   Accepted: 2447 D ...

  8. BNU-2017.7.5排位赛3总结

    链接:https://www.bnuoj.com/v3/contest_show.php?cid=9148#info A题 满足条件的只有(1,2,4),(1,2,6),(1,3,6),所以先满足4, ...

  9. Hadoop 遇到的问题集

    1. Mac 使用ssh命令无法成功 ssh localhost,但是可以ssh其他的 可能原因:ssh服务未启动 解决方法: 1.启动sshd服务: sudo launchctl load -w / ...

  10. HDU 1573 CRT

    CRT模板题 /** @Date : 2017-09-15 13:52:21 * @FileName: HDU 1573 CRT EXGCD.cpp * @Platform: Windows * @A ...