• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

java.lang.outOfMemory when rendering large PDF

 
Ranch Hand
Posts: 49
  • 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
 
author and deputy
Posts: 3150
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!