Hi Rene,
Create the report in parts and merge it with a PDF merge java action.
The document generator holds the entire DOM of the document in memory, it would need considerable refactoring to change this. There are some other easier optimizations though, but it's not high on the roadmap right now. For now the easiest solution is to reduce the size of the document or its data, for example by merging PDF's as Herbert suggested. If you have very high resolution images in your document, you could try to reduce them in size as well.
HI Rene,
I dont have an exact solution, but a reference if that helps.
You have already set the heap space now try to set this env variable
FOPOPTS=-Xmx999m %FOPOPTS% from project settings.
See if that helps or not.
if this sets correctly then it should run fine with the number of records you have mentioned above or more.
If you want to know about fop then probably this site may help
https://xmlgraphics.apache.org/fop/1.1/embedding.html
Herbert,
Thought of that (merging). Was wondering if their is another solution
I think the problem is holding all records in memory. Would it be possible to batch iterate over the objects?
Regards,
Ronald