Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating PDF Report

Status
Not open for further replies.

prwong

Programmer
Oct 23, 2001
1
HK
I need to generate pdf report from a large amount of xml data that extracted from SQL Server. The content of the pdf report contains some pictures and style (e.g. color in the text). I am using FOP from Apache.

My problem is when i want to generate more than 100 records, the process cannot finish because OutOfMemory Error. Do anyone know how can i improve the performance of the process so that i can generate the whole report?

Thank you for advanced.

Priscilla
 
Hi,
This is a typical problem when you force FOP to handle large chunk of data.
If you refer to the FOP FAQ on the owal site (very informative),the solution appears to be to increase the -mx setting in the java call,because it is java that is running out of memory.You can allocate greater memory to java so that it never runs out of memory
Try this link for more info ;
Cheers!
Ravi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top