Setting JVM memory through Java code for Standalone BIRT engine [message #1667864] |
Thu, 12 March 2015 04:12  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05291 seconds