RE: FOP Performance Limitations?

2002-03-14 Thread Peter Jacobs
Strange, the difference was very noticeable, in the XSL-transforms (to
HTML,Excel,FO) as well as in de FOP-PDF generation step.
Like XML-FO-PDF in 10 seconds instead of 50!!
Other people reported the same thing
e.g. see the thread Re: FOP performance on Win98/JRE 1.3.1 on FOP-DEV.


 That's interesting that it made a difference for you. On our XML/XSL, it
 didn't make much difference - maybe it shaved 1-2 seconds of a 60 second
 rendering.

 -David

 On Wed, 13 Mar 2002, Peter Jacobs wrote:

 
  Are you using the included Xalan and Xerces.jar? I replaced
 them with Xalan
  2.2 and Xerces 1.4.2 and got big improvement in speed (on
 Win2000 and Sun
  Solaris).
 





RE: FOP Performance Limitations?

2002-03-14 Thread David Wood
I have a sinking feeling another xalan/xerces combination is somewhere in
my classpath.

The problem? I don't have a classpath env. variable set.

I wonder where that list of places the 1.4JVM looks for classes on
win32 is?

On Thu, 14 Mar 2002, Peter Jacobs wrote:

 Strange, the difference was very noticeable, in the XSL-transforms (to
 HTML,Excel,FO) as well as in de FOP-PDF generation step.
 Like XML-FO-PDF in 10 seconds instead of 50!!
 Other people reported the same thing
 e.g. see the thread Re: FOP performance on Win98/JRE 1.3.1 on FOP-DEV.


  That's interesting that it made a difference for you. On our XML/XSL, it
  didn't make much difference - maybe it shaved 1-2 seconds of a 60 second
  rendering.
 
  -David
 
  On Wed, 13 Mar 2002, Peter Jacobs wrote:
 
  
   Are you using the included Xalan and Xerces.jar? I replaced
  them with Xalan
   2.2 and Xerces 1.4.2 and got big improvement in speed (on
  Win2000 and Sun
   Solaris).
  
 








RE: FOP Performance Limitations?

2002-03-13 Thread Peter Jacobs

Are you using the included Xalan and Xerces.jar? I replaced them with Xalan
2.2 and Xerces 1.4.2 and got big improvement in speed (on Win2000 and Sun
Solaris).

Peter


Peter Jacobs
Freelance multimedia programmeur
De Budetstraat 8
B-3201 Aarschot
[EMAIL PROTECTED]
016/573257






Re: FOP Performance Limitations?

2002-03-13 Thread alex
Actually the FAQ (at http://www.owal.co.uk/cgi-bin/fopfaq.cgi since I have 
given up on the interactive Jyve program)
doesn't contain much on memory consumption. I will add in the new page 
sequence when I (or someone else) comes up with an example.


Alex
At 20:22 12/03/2002, Chuck Paussa wrote:
David,
Most likely you're running out of memory. You should set a new 
page-sequence every once in a while (~60 lines of report would make it 
every page) Look on the FAQ about memory consumption
Chuck




RE: FOP Performance Limitations?

2002-03-13 Thread David Wood
That's interesting that it made a difference for you. On our XML/XSL, it
didn't make much difference - maybe it shaved 1-2 seconds of a 60 second
rendering.

-David

On Wed, 13 Mar 2002, Peter Jacobs wrote:


 Are you using the included Xalan and Xerces.jar? I replaced them with Xalan
 2.2 and Xerces 1.4.2 and got big improvement in speed (on Win2000 and Sun
 Solaris).

 Peter

 
 Peter Jacobs
 Freelance multimedia programmeur
 De Budetstraat 8
 B-3201 Aarschot
 [EMAIL PROTECTED]
 016/573257








Re: FOP Performance Limitations?

2002-03-12 Thread David Wood
I've been making pretty big PDFs with a similar system and can share a few
off-the-cuff comments.

It's obvious to me that the structure of your fo document - sequences,
page layout, flows, etc - can make a significant difference in memory
usage and speed. However, I don't have enough concrete conclusions about
what exactly does what and how to offer any useful advice on that level...
perhaps others can help you there...

The big thing I noticed was page numbers. If you use them and especially
if you make references to them (i.e. building a table of contents) you'll
see a significant speed and memory impact. GC consequences to references,
perhaps.

Basically you need to tune your fop script to give FOP the maximum
possible heap size (i.e. fop.bat starts with java -Xmx256M ...). If you
make it too large, you'll discover that between Java and FOP the memory
access patterns will spank the shit out of your VM once the heap exceeds
the available RAM and you start to swap. Some observations of your
machine's memory availability during normal use and some experimentation
should get you to the right number.

Your experience of having 40+ minute rendering times is strongly
suggestive of swap binding. Practically speaking, you need to make your
heap small enough that java never swaps, and limit your recordset size on
the front end to make sure that you never hit that memory ceiling.

Between this and throwing hardware at the problem (multiple Xeons and 1GB+
RAM) we've made a go of it for 1000+ page documents. But of course every
recordset+template is different so that pagecount isn't necessarily
meaningful at all.

One thing that I haven't tried yet but am very curious to experiment with
is FOP + IBM JVM. CW has it that the IBM VM is significantly superior to
Sun's VM on both CPU and RAM efficiency.

If I manage to get to this, I'll post my results. If anyone else has or
happens to get to it first, I'd love to hear what happens. I mean, after
your write-once-porting-is-slightly-less-painful experience.

On Tue, 12 Mar 2002, David Le Strat wrote:

 All,

 I am currently working on a project where we are dynamically creating PDF
 documents based on a user input.  When a user selects a specific period of
 time, we pull out the matching records from the database, convert the
 dataset to XML and render a PDF report based on that dataset.  Now,
 everything works fine when we are manipulating up to 200 records (we get the
 result in 1 or 2 minutes).  However some reports manipulate 7000 or 8000
 records and in these particular instances, the performance degrades fairly
 significantly (no report was rendered after 40 minutes).

 Does any of you have any idea/input on how to improve performance using FOP
 in such cases and what type of performance we should expect for the above
 examples?

 Thank you for your help.

 David Le Strat.