Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM:MetaSpace #1410

Closed
bj-wangxing opened this issue Nov 2, 2022 · 2 comments
Closed

OOM:MetaSpace #1410

bj-wangxing opened this issue Nov 2, 2022 · 2 comments

Comments

@bj-wangxing
Copy link

版本号:1.4.1
问题描述:

积木报表使用了 Aviator 作为表达式引擎,我看到在1.4.1 这个版本中
org.jeecg.modules.jmreprort.desreprt.express.b 这个类中的 出现了如下代码:
expression = e.compile(str); 这会造成 JVM ClassLoader 不断的加载类进入 MetaSpace
而这部分资源又不能被释放
所以这行代码是否应改为 expression = e.compile(str,true); 将表达式解析放入缓存中;

JDK1.8 取消了 PermGen,引入了 MetaSpace,这行代码如果不改,在生成报表数据较多的时候会造成 OOM:MetaSpace

错误日志&截图:

微信图片_20221102163617

重现步骤:

生成一张数据量比较大的报表

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供报表设计SQL脚本或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@lvdandan16
Copy link
Collaborator

收录 ty

@tygithub1
Copy link

已修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants