• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.outOfMemory when rendering large PDF

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic