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. NOIP2016天天爱跑步 题解报告【lca+树上统计(桶)】

    题目描述 小c同学认为跑步非常有趣,于是决定制作一款叫做<天天爱跑步>的游戏.«天天爱跑步»是一个养成类游戏,需要玩家每天按时上线,完成打卡任务. 这个游戏的地图可以看作一一棵包含 nn个 ...

  2. Dll劫持漏洞详解

      一.dll的定义 DLL(Dynamic Link Library)文件为动态链接库文件,又称“应用程序拓展”,是软件文件类型.在Windows中,许多应用程序并不是一个完整的可执行文件,它们被分 ...

  3. Linux内核分析8

    周子轩 原创作品转载请注明出处  <Linux内核分析>MOOC课程http://mooc.study.163.com/course/USTC-1000029000 实验目的: 使用gdb ...

  4. Hbase(一)基础知识

    一.Hbase数据库介绍 1.简介 HBase 是 BigTable 的开源 java 版本.是建立在 HDFS 之上,提供高可靠性.高性能.列存储. 可伸缩.实时读写 NoSQL 的数据库系统. N ...

  5. 【51nod1965】奇怪的式子

    Portal --> 51nod1965 Solution 怎么说呢..这题..做的有点痛苦.. 首先看这个式子长得..比较奇怪,指数里面那个加号有点烦人,而且这个函数不是一个积性函数也有点烦人 ...

  6. Spring MVC @ModelAttribute详解

    被@ModelAttribute注释的方法会在此controller每个方法执行前被执行,因此对于一个controller映射多个URL的用法来说,要谨慎使用. 我们编写控制器代码时,会将保存方法独立 ...

  7. webstorm下搭建编译less环境 以及设置压缩css

    webstorm自带less,不过要编译的话需要nodejs环境. 首先去node的主页下载对应版本的nodejs然后安装,下载地址:http://nodejs.org/ 安装完之后打开命令提示符(w ...

  8. Filter 介绍

    Filter 可认为是 Servlet 的一种加强版,它主要用于对用户请求进行预处理,也可以对 HttpServletResponse 进行后处理,是个典型的处理链. Filter 也可对用户请求生成 ...

  9. Linux常用网络工具:批量主机服务扫描之nmap

    Linux下有很多强大网络扫描工具,网络扫描工具可以分为:主机扫描.主机服务扫描.路由扫描等. 之前已经写过常用的主机扫描和路由扫描工具,nmap支持批量主机扫描和主机服务扫描. nmap的安装直接使 ...

  10. [DeeplearningAI笔记]序列模型3.9-3.10语音辨识/CTC损失函数/触发字检测

    5.3序列模型与注意力机制 觉得有用的话,欢迎一起讨论相互学习~Follow Me 3.9语音辨识 Speech recognition 问题描述 对于音频片段(audio clip)x ,y生成文本 ...