Update…

 

I was googling in the wrong place.  When I looked in Java I found the switch “–XX:+AggessiveHeap” which fixed the problem.

 

Is this the best switch to use, or is there something better?

 

Rick

 


From: Rick Roen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 25, 2006 4:12 PM
To: fop-users@xmlgraphics.apache.org
Subject: out of memory error

 

I’m running FOP from the current build of about a month ago on XP Pro SP2 1.5GB RAM

 

I have a command line routine that runs sales documents (packing list, invoice etc.) from xml  .-> xslt (using Saxon 8 )->pdf.

 

This works with no problem except when I have an extra large document (maybe 20 or 25 pages, I’m not really sure since it does not work) when I get an error:

 

“Exception in thread "main" java.lang.OutOfMemoryError: Java heap space”

 

I am using “page-number-citation” at the end of the document to print “page x of y” at the bottom of each page.  I seem to recall that this might force the entire document to be created in memory.  Does anyone know if this could be the problem, or is there some other way to reduce the memory consumption?

 

Thanks,

 

Rick

Reply via email to