Skip to main content



      Home
Home » Archived » BIRT » Setting JVM memory through Java code for Standalone BIRT engine
Setting JVM memory through Java code for Standalone BIRT engine [message #1667864] Thu, 12 March 2015 04:12 Go to next message
Eclipse UserFriend
Hi, We are trying to use stand alone BIRT engine (2.6.1) to generate our Excel format report. We are able to execute the report using eclipse Helios. But we try to execute the report through command prompt (this is because the reports are generated through batch job) we are getting out-of-memory error.

The reason behind we are using 2.6.1 version is, we already have web base application to generate the report which is 2.6.1 version and now we are planning to generate the report in excel format and store it in DB through java code (due to batch execution), we are using the 2.6.1 BIRT engine to maintain uniform.

We have tried to set the memory option as follows. But still failed. The main intention is how to set the memory using java code to run the report.

task.getAppContext().put(DataEngine.MEMORY_USAGE,
DataEngine.MEMORY_USAGE_CONSERVATIVE);
task.getAppContext().put(DataEngine.DATA_SET_CACHE_ROW_LIMIT, "0");
task.getAppContext().put(DataEngine.MEMORY_BUFFER_SIZE, "2");

Any help would be appreciated.

Error we are getting:

There is insufficient memory to execute this report.

Note:
We are executing a very simple report to get the excel output.
Re: Setting JVM memory through Java code for Standalone BIRT engine [message #1668694 is a reply to message #1667864] Thu, 12 March 2015 11:56 Go to previous message
Eclipse UserFriend
Could you provide more details on how you are generating the reports through the command line?
Are you using the genReport.sh or genReport.bat?
Previous Topic:Canceling rendering when resultset is empty
Next Topic:Table Cell click
Goto Forum:
  


Current Time: Wed Apr 23 10:06:55 EDT 2025

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

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

Back to the top