openeuler-riscv / oerv-team

OERV 实习生工作中心
11 stars 43 forks source link

修复rocketmq堆内存不足问题 #1391

Open laokz opened 1 month ago

laokz commented 1 month ago

https://build.tarsier-infra.isrc.ac.cn/package/live_build_log/openEuler:24.03:SP1:Everything/rocketmq/mainline_riscv64/riscv64

[ 7422s] [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:4.2.2:spotbugs (spotbugs) on project rocketmq-common: Execution spotbugs of goal com.github.spotbugs:spotbugs-maven-plugin:4.2.2:spotbugs failed: java.lang.OutOfMemoryError: Java heap space -> [Help 1]

涉及分支:master、2403next

1291945816 commented 4 weeks ago

已提交PR:https://gitee.com/src-openeuler/rocketmq/pulls/50

在使用maven构建过程中,引入-Dspotbugs.skip=true参数后,会发现问题消失,经验证发现是因为spotbug静态分析rocketmq代码的过程中需要花费的内存开销大于默认分配的,所以本次修复主要是提高默认分配的内存大小以及超时时间

引入补丁后已经能够编译成功,日志见:https://build.tarsier-infra.isrc.ac.cn/package/live_build_log/home:pSomng:branches:openEuler:24.03/rocketmq/mainline_riscv64/riscv64

laokz commented 4 weeks ago

pr中不作格式类修改,以便看清实际做了哪些修改

@DingliZhang 帮看看