Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.outOfMemory when rendering large PDF

 
Monty Guppy
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic