20 to 25 pages does not really count as "extra large". Does your document contain a few images? If yes and assuming you use FOP 0.92beta or later, you might want to try the latest code from FOP Trunk (from Subversion) where I've fixed two memory leaks which dramatically improves memory usage of FOP when using bitmap images.
I've never used the AggressiveHeap option before. I can't even tell from the descriptions I found what it really does. If it helps, cool, but sometimes these measures just cover an underlying problem that should be fixed at some point. On 25.07.2006 23:58:51 Rick Roen wrote: > 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: [email protected] > 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 > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
