[I'll give J. a breather on this one] Assuming you've made certain that the bottleneck is in FOP and not your XSLT transformation, the only thing you can really do to help with very large reports is to break the PDFs into multiple page-sequences. IE start a new page-sequence every X nodes. If you have natural page break that you can use, no one will ever notice in the final output. Otherwise you may have awkward page breaks in your document. I have attached an XSLT stylesheet that we use to essentially break the XSL:FO into "chunks". Every 10 Investigator (=doctor) nodes we start a new page-sequence. Since this report has a page break for each new  investigator anyway, the end result is no different. 
 
We increased our max PDF size on this report from 30 pages to 200 using this method, and seriously sped up rendering time for large reports. FYI - we are running Weblogic on HP-UX with -hotspot, max-heap-size=512MB. For some reason, the Wintel JVM seems to perform a lot better than HP-UX on FOP, and in general.
 
Note: as originally pointed out on this board, there is actually a slicker, and probably more efficient, way to do the node processing using a recurring template. But I just found out how to do that and  our bottleneck isn't in the XSLT so I haven't had any motiviation to go back and fix it. Here's the example:  http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94 I like Steve Tinney's solution to the grouping problem.
 
Hope this helps,
Matt
 
-----Original Message-----
From: Mohit Sharma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2003 6:34 PM
To: [EMAIL PROTECTED]
Subject: Big/Huge XMLs

I have big/huge XMLs, and I need to convert them into PDFs using FOP. Benchmarking the latest FOP gives poor results, both memory-wise and processing-wise. Its just taking too much time. The XML cannot really be broken down into chunks, as its all part of a report. And I need to process a lot of reports overnight, and I don't have a cluster at my disposal to distribute the load.
 
Is there a way to speed up the processing time ?
 
 
Best,
Mohit Sharma

Attachment: pvh_XmlToFo.xsl
Description: pvh_XmlToFo.xsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to