Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to generate rptdocument with streaming
How to generate rptdocument with streaming [message #1647949] Tue, 03 March 2015 17:48 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 10
Registered: May 2014
Junior Member
We use ScriptedDataSetEventAdapter and fire the database query in Java code to retrieve the data. Data retrived from database is very large. It has nearly 300K rows and 27 columns having 500 MB of rptdocument file.
We support five such reports. We have allocated 2 GB memory for java application.

I think birt keeps all the data in memory. Due to that OutOfMemory error occurs.

Is there ant way in Birt to write rptdocument incrementally(using streaming) so that it does not store rptdocument(500 MB) in memory?


[Updated on: Tue, 03 March 2015 17:49]

Report message to a moderator

Re: How to generate rptdocument with streaming [message #1650561 is a reply to message #1647949] Wed, 04 March 2015 22:29 Go to previous messageGo to next message
Jesse Freeman is currently offline Jesse FreemanFriend
Messages: 184
Registered: January 2015
Senior Member
I am not aware of a way to achieve this. However, a 2GB maximum heap size should be sufficient to generate a document of this size.
Is your application attempting to generate multiple documents simultaneously?

What is your use case for generating a single report document with that many rows and columns?
You could instead break the report down into multiple smaller reports.
Re: How to generate rptdocument with streaming [message #1651408 is a reply to message #1650561] Thu, 05 March 2015 09:31 Go to previous messageGo to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 10
Registered: May 2014
Junior Member
Yes. We support 5 reports at a time.
Customer may generate such big reports.
In order to avoid OutOfMemory, we are searching a way to write the rptdocument with streaming.
Re: How to generate rptdocument with streaming [message #1651431 is a reply to message #1651408] Thu, 05 March 2015 09:45 Go to previous message
Eclipse User is currently offline Eclipse UserFriend
Messages: 10
Registered: May 2014
Junior Member
I gone through various tutorials/videos/ post of BIRT reporting but did find any place where its mention a way to generate rptdocument using streaming or chunking.
Also did not find a way to generate xls report file from rptdocumnet using streaming.
Looks like BIRT requires all the data in memory for generating the rptdocument and xls file and that may lead to OutOfMemory error if we have large multiple reports generation at the same.
Previous Topic:Error when Generating the report in the eclipse
Next Topic:Headers and other fields in CSV Generated Report
Goto Forum:
  


Current Time: Sat Jul 20 13:08:59 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top