当前位置:网站首页>A fullGC problem troubleshooting caused by groovy
A fullGC problem troubleshooting caused by groovy
2022-08-10 20:26: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: Create customer tasks
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 Monitoring chart for a single day


2.3.2 Alarm time period monitoring chart


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";
}
三、解决方案
边栏推荐
- 2020 ICPC Shanghai Site G
- 转铁蛋白修饰长春新碱-粉防己碱脂质体|转铁蛋白修饰共载紫杉醇和金雀异黄素脂质体(试剂)
- QoS Quality of Service Eight Congestion Avoidance
- Pt/CeO2单原子纳米酶|[email protected] NPs纳米酶|碳纳米管负载铂颗粒纳米酶|白血病拮抗多肽修饰的FeOPtPEG复合纳米酶
- 【图像分类】2018-MobileNetV2
- The servlet mapping path matching resolution
- argparse——命令行参数解析
- UnitTest中的Path must be within the project 问题
- 史上最全GIS相关软件(CAD、FME、Arcgis、ArcgisPro)
- QoS Quality of Service Six Router Congestion Management
猜你喜欢

《分布式微服务电商》专题(一)-项目简介

30分钟使用百度EasyDL实现健康码/行程码智能识别
壁仞推出全球最大算力芯片,号称以7nm超越英伟达4nm最新GPU

从 Delta 2.0 开始聊聊我们需要怎样的数据湖

网络虚拟化

转铁蛋白修饰长春新碱-粉防己碱脂质体|转铁蛋白修饰共载紫杉醇和金雀异黄素脂质体(试剂)

(十)图像数据的序列与反序列化

线性结构----链表

(12) findContours function hierarchy explanation
[email protected]纳米模拟酶|PtCo合金纳米粒子"/>水溶性合金量子点纳米酶|CuMoS纳米酶|多孔硅基Pt(Au)纳米酶|[email protected]纳米模拟酶|PtCo合金纳米粒子
随机推荐
电脑如何去掉u盘写保护的状态
cordova 安装错误 Command failed: powershell 解决方法
zip文件协议解析
越折腾越好用的 3 款开源 APP
Transferrin-modified osthole long-circulating liposomes/PEG-PLGA nanoparticles loaded with notoginsenoside R1 ([email prot
cordova installation error Command failed: powershell solution
【LeetCode】42、接雨水
Implementation of graceful exit in Golang
2019河北省大学生程序设计竞赛部分题题解
怎么完全卸载赛门铁克_Symantec卸载方法,赛门铁克卸载「建议收藏」
1D Array Dynamics and Question Answers
洛谷 P1629 邮递员送信 (三种最短路)
【毕业设计】基于Stm32的智能疫情防控门禁系统 - 单片机 嵌入式 物联网
Kyligence 通过 SOC 2 Type II 审计,以可信赖的企业级产品服务全球客户
keepalived:故障检测自动修复脚本
【CMU博士论文】视频多模态学习:探索模型和任务复杂性,152页pdf
金鱼哥RHCA回忆录:CL210OpenStack操作的故障排除--章节实验
@Autowired注解 --required a single bean, but 2 were found出现的原因以及解决方法
Pt/CeO2单原子纳米酶|[email protected] NPs纳米酶|碳纳米管负载铂颗粒纳米酶|白血病拮抗多肽修饰的FeOPtPEG复合纳米酶
[Natural Language Processing] [Vector Representation] PairSupCon: Pairwise Supervised Contrastive Learning for Sentence Representation