Birt Engine 使用

1 篇文章 0 订阅

当Birt ReportTemplate 设计缺陷或者由于数据量巨大,有可能导致内存溢出问题。

可以通过调整Birt Engine 的相关参数避免问题的产生,可以调整一下参数。 Buffer 的单位均为MB

ID
API
Description For API
Value To Be Set
1DataEngine.MEMORY_BUFFER_SIZE

Indicate the size of data cached for each result set.

We only accept non-negative integer as input, 
the unit of which would be MB. 
If this setting is 0, all temporary rows will be cached

in memory during query processing.

100
2DataEngine.IN_MEMORY_CUBE_SIZE

The size of cube to be saved in memory rather

than in disk. The unit is MB. In case that the size
of materialized cube exceed the assigned memory size,

the disk will automatically be used.

100
3DataEngine.MEMORY_USAGE

Indicates data engine memory usage hint level

  • MEMORY_USAGE_AGGRESSIVE:  This level is corresponding to 100% memory based
  • MEMORY_USAGE_NORMAL: This level is corresponding to partly disk based
  • MEMORY_USAGE_CONSERVATIVE: This level is corresponding to mainly disk based 
DataEngine.MEMORY_USAGE_NORMAL

 

这样通过限制内存中的buffer 从而限制内存的使用,当内存不足时,将使用Disk作为Cache,可能造成性能稍微的下降,但可以避免内存溢出问题。

当内存空闲较大时,可以适当的放大 buffer 值。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值