当前位置:网站首页>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";
}
三、解决方案
边栏推荐
- (12) findContours function hierarchy explanation
- MATLAB设计,FPGA实现,联合ISE和Modelsim仿真的FIR滤波器设计
- 【图像分类】2019-MoblieNetV3 ICCV
- "POJ 3666" Making the Grade problem solution (two methods)
- 转铁蛋白修饰长春新碱-粉防己碱脂质体|转铁蛋白修饰共载紫杉醇和金雀异黄素脂质体(试剂)
- 爱丁堡大学最新《因果机器学习: 医疗健康与精准医疗应用》2022综述
- win10 xbox录屏功能不能录声音怎么办
- 【语义分割】2017-PSPNet CVPR
- Common ports and services
- Echart饼状图标注遮盖解决方案汇总
猜你喜欢
Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme | Palladium Nanozyme | GMP-Pd Nanozyme | Gold-Palladium Composite Nanozyme | Ternary Metal Pd-M-Ir Nanozyme |shell nanozyme
Linux服务器安装Redis,详细步骤。
史上最全GIS相关软件(CAD、FME、Arcgis、ArcgisPro)
线性结构----链表
(十二) findContours函数的hierarchy详解
转铁蛋白(Tf)修饰去氢骆驼蓬碱磁纳米脂质体/香豆素-6脂质体/多柔比星脂质体
主动信息收集
巧用RoaringBitMap处理海量数据内存diff问题
(十)图像数据的序列与反序列化
【图像分类】2018-MobileNetV2
随机推荐
Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
水溶性合金量子点纳米酶|CuMoS纳米酶|多孔硅基Pt(Au)纳米酶|[email protected]纳米模拟酶|PtCo合金纳米粒子
【图像分类】2018-MobileNetV2
2020 ICPC Shanghai Site G
巧用RoaringBitMap处理海量数据内存diff问题
Linux服务器安装Redis,详细步骤。
报错:runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator<int>>‘
1D Array Dynamics and Question Answers
爬虫基本原理介绍、实现以及问题解决
网站架构探测&chrome插件用于信息收集
多线程与高并发(五)—— 源码解析 ReentrantLock
电脑开不了机是什么原因?
idea插件 协议 。。 公司申请软件用
Implementation of graceful exit in Golang
论文解读(g-U-Nets)《Graph U-Nets》
史上最全GIS相关软件(CAD、FME、Arcgis、ArcgisPro)
基于TCP的聊天系统
【毕业设计】基于Stm32的智能疫情防控门禁系统 - 单片机 嵌入式 物联网
cordova installation error Command failed: powershell solution
(十二) findContours函数的hierarchy详解