Jump to content

OutOfMemoryError when exporting to PDF


couetbis

Recommended Posts

Hi!

 

I'am using JasperReports 2.0.4.

My report produce java.lang.OutOfMemoryError on report PDF export stage.

 

I'm using JRSwapVirtualizer. In my report, there are barcode generate by JRAbstractSvgRenderer. I have about 10000 records (print : type + barcode)

 

I read the post [http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=35538&catid=8&limit=6&limitstart=0]

but it don't answer my problem.

 

Thanks for you help

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The amount of heap memory occupied by Java objects that are required to generate a 70M PDF file will not necessarily be 70M. PDF output is something, and Java objects are another thing.

 

I can't provide at the moment more details about the objects that are used in this scenario since they are not directly managed by JasperReports, but by iText, the library JR uses to generate PDF files.

 

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...