Gaining OutOfMemoryException during transforming

Here should go questions about transforming XML with XSLT and FOP.
kirashet
Posts: 4
Joined: Fri Nov 18, 2005 11:37 am

Gaining OutOfMemoryException during transforming

Post by kirashet »

Hi guys,

I got a strange problem during transforming XML and a XSLT to PDF.
Using Version 0.20.5 of FOP.

First, I create accountstatements, i.e. for GL accounts, Debitor accounts or Creditor accounts.
The XML output for all GL accounts in one month is nearly 10 MB large.
Debitor/Creditor accounts of one month is much bigger, nearly 15 MB.

While transforming the Debitor/Creditor XML to PDF, there is no problem. The CPU usage rises up to 100%, but the rendering successes.
But with the smaller GL accounts XML I get an OutOfMemoryException.

What could be the reason?

BR...
Sahin
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hello Sahin,

It is not only the size of the input that counts but also the coplexity of the processing.
First check where you get the out of memory error, is it that when you apply your stylesheet to get the FO document or when you convert the FO to PDF using FOP. If it is in the first step then you need to give more memory to oXygen [1], otherwise if it is in the second step then you need to set more memory for FOP [2].

[1] http://www.oxygenxml.com/doc/ug-oxygen/ ... blems.html
[2] http://www.oxygenxml.com/doc/ug-oxygen/ ... processors

Best Regards,
George
Post Reply