当前位置:网站首页>一次由groovy引起的fullGC问题排查
一次由groovy引起的fullGC问题排查
2022-08-10 20:01:00 【InfoQ】
- 2.1 参数配置
- 2.2 定位过程
- 2.3 JVM分析
- 2.4 问题分析
一、问题背景
二、分析过程
2.1 参数配置
-Xms3g -Xmx3g -Xmn1g -XX:MetaspaceSize=128m -XX:ParallelGCThreads=5 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=80 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError
2.2 定位问题
任务1: 更新客户信息
CustomerScheduleJobService.updateCustomerDataDaily 0 0/30 8,9,10,11,12 * * ?
任务2: 创建客户任务
CustomerStaffScheduleJobService.jobCreateTask 0 10,40 7,8,9,10,11 * * ?
[03-09 08:00:00 062 INFO ] [] [] [] [customerDataStat-pool-0] bll.customer.CustomerUpdateInfoDailyBll - (123) logid=6907112718471909376 [BizCustomerBll.updateCustomerDataDaily] thread begin...Ip: 10.151.49.157
[03-09 08:01:25 476 INFO ] [] [] [] [customerDataStat-pool-0] bll.customer.CustomerUpdateInfoDailyBll - (125) logid=6907112718471909376 [BizCustomerBll.updateCustomerDataDaily] end total=0Ip: 10.151.49.157
[03-09 08:45:08 458 INFO ] [] [] [] [pool-4-thread-20] bll.task.CreateCustomerTaskBll - (109) logid=6907115234995589120 method=jobCreateTask msg=end queryRuleNum=7 queryCustomerNum=15962 createTaskCustomerNum=238 createTaskCount=271Ip: 10.151.49.157
2.3 JVM分析
2.3.1 单天监控图


2.3.2 报警时间段监控图


2.3.3 图表分析


2.4 参数配置
java version "1.8.0_191"
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.15</version>
</dependency>
public class GroovyShellUtils {
private static LoggerHelper logger = LoggerHelper.getLoggerHelper(GroovyShellUtils.class);
public static boolean explain(String scriptText) {
try {
GroovyShell groovyShell = new GroovyShell();
Object evaluate = groovyShell.evaluate(scriptText);
return (boolean) evaluate;
} catch (Exception e) {
logger.error("", e);
}
return false;
}
}
// 使用:
for (String rule : rules) {
boolean res = GroovyShellUtils.explain(rule);
}
protected synchronized String generateScriptName() {
return "Script" + (++counter) + ".groovy";
}
三、解决方案
边栏推荐
- 一维数组动态和问题答记
- 多线程与高并发(五)—— 源码解析 ReentrantLock
- 转铁蛋白Tf功能化β-榄香烯-雷公藤红素/紫杉醇PLGA纳米粒/雷公藤甲素脂质体(化学试剂)
- 转铁蛋白修饰蛇床子素长循环脂质体/负载三七皂苷R1的PEG-PLGA纳米粒([email protected] NPs)
- 2022 Hangdian Multi-School Seven Black Magic (Sign-in)
- 《分布式微服务电商》专题(一)-项目简介
- 优雅退出在Golang中的实现
- The 2021 ICPC Asia Shanghai Regional Programming Contest D、E
- mysql踩坑----case when then用法
- 铱钌合金/氧化铱仿生纳米酶|钯纳米酶|GMP-Pd纳米酶|金钯复合纳米酶|三元金属Pd-M-Ir纳米酶|中空金铂合金纳米笼核-多空二氧化硅壳纳米酶
猜你喜欢

多功能纳米酶Ag/PANI|柔性衬底纳米ZnO酶|铑片纳米酶|Ag-Rh合金纳米颗粒纳米酶|铱钌合金/氧化铱仿生纳米酶

idea插件 协议 。。 公司申请软件用

转铁蛋白Tf功能化β-榄香烯-雷公藤红素/紫杉醇PLGA纳米粒/雷公藤甲素脂质体(化学试剂)

Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)

Ferritin particle-loaded raltitrexed/pemetrexed/sulfadesoxine/adamantane (scientific research reagent)

【语义分割】2017-PSPNet CVPR

测试/开发程序员值这么多钱么?“我“不会愿赌服输......

WCF and TCP message communication practice, c # 】 【 realize group chat function

Common ports and services
[email prot"/>Transferrin-modified osthole long-circulating liposomes/PEG-PLGA nanoparticles loaded with notoginsenoside R1 ([email prot
随机推荐
QoS Quality of Service Six Router Congestion Management
UE4 - 河流流体插件Fluid Flux
【语义分割】2016-SegNet TPAMI
[Natural Language Processing] [Vector Representation] PairSupCon: Pairwise Supervised Contrastive Learning for Sentence Representation
回老家去?
指针常量和常量指针
铁蛋白颗粒负载雷替曲塞/培美曲塞/磺胺地索辛/金刚烷(科研试剂)
电脑为什么会蓝屏的原因
What is the upstream bandwidth and downstream bandwidth of the server?
YOLOv3 SPP source analysis
Metasploit——渗透攻击模块(Exploit)
【无标题】基于Huffman和LZ77的GZIP压缩
C 语言 时间函数使用技巧(汇总)
CMU博士论文 | 视频多模态学习:探索模型和任务复杂性
皮质-皮质网络的多尺度交流
水溶性合金量子点纳米酶|CuMoS纳米酶|多孔硅基Pt(Au)纳米酶|[email protected]纳米模拟酶|PtCo合金纳米粒子
多线程与高并发(五)—— 源码解析 ReentrantLock
运维面试题(每日一题)
一维数组动态和问题答记
【二叉树】二叉搜索树的后序遍历序列