aspose file tools*
The moose likes XML and Related Technologies and the fly likes java.lang.outOfMemory when rendering large PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java.lang.outOfMemory when rendering large PDF" Watch "java.lang.outOfMemory when rendering large PDF" New topic
Author

java.lang.outOfMemory when rendering large PDF

Monty Guppy
Ranch Hand

Joined: Sep 15, 2001
Posts: 49
Hi,
I am getting the outOfMemory exception when I try to render a PDF using FO. Everything seems to work fine when I have less than 150 records, but anntime I have a greater number of recods I get the outOfMemory exception. I have set the JVM min and max memory to 256M and 512M respectively, and do not have any forward references like "page N of TOTAL".
One of apache's recommendation is to use multiple page-sequences. In my document (a report of employee data) all pages look similar, so I am not able to figure out how to get multiple sequences involved. The apparent advantage with multiple sequences is that it the PDF is rendered at the completion of each sequence, instead of waiting to render the PDF at right the very end when using one sequence for the whole document.
Any help would be very appreciated.
Thanks
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Prateek Gupta:
One of apache's recommendation is to use multiple page-sequences. In my document (a report of employee data) all pages look similar, so I am not able to figure out how to get multiple sequences involved. The apparent advantage with multiple sequences is that it the PDF is rendered at the completion of each sequence, instead of waiting to render the PDF at right the very end when using one sequence for the whole document.
Any help would be very appreciated.
Thanks

At this moment and to my knowledge, going for multiple page sequence is the only option.


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.outOfMemory when rendering large PDF