Re: Error conversion XML to PDF: Exception in thread main java.lang.OutOfMemoryError

2002-05-20 Thread Arnd Beißner

> We create an XML file in ASCII of a size 1 MB (the file XML is an order 
of 300 rows), when I launch Fop-parser (fop0.20.3) to converte XML to PDF 
using XSL: > the parser stops when it processes the 28 row with this 
message:
> "Exception in thread "main" java.lang.OutOfMemoryError".
> My system is WinNt 4.0 Server, If you could help me solve the problem in 
some way, I will be greatful.

With certain print jobs, FOP can consume a huge amount of memory. For 
example, I have an XML file of
about 600KB that produces approximately 200 page of tabular data in small 
font sizes. Rendering
this file with FOP is impossible with the SUN VM on Windows, because of 
its memory limit of 1GB. I use
JRockit for his file.

What you need to do relatively soon with FOP is increase the maximum heap 
size of your VM. The
SUN VM has an upper limit of 256MB on Windows by default. Use the -Xmx 
commandline option
to increase the max heap to 512MB. This should be ok for most files.

Another point: Try to find out if the XSLT processor or FOP itself runs 
out of memory by doing
the XSLT transformation separately - with stand-alone XALAN for example.

Hope this helps,

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


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




RE: Error conversion XML to PDF: Exception in thread main java.lang.OutOfMemoryError

2002-05-20 Thread Alistair Hopkins



Is the 
XSL file causing a loop?  Files of this size should be 
OK.
 
ie: do 
you use recursive templates:
 

 

    ...output 
stuff

    
    

 
will 
cause OutOfMemory.  
 
Otherwise, look at the java -X options for increasing 
the maximum memory available to java - it defaults fairly 
low.
 
Alistair
 
 -Original Message-From: 
Alessandro Bicocchi [mailto:[EMAIL PROTECTED]]Sent: 20 May 
2002 11:38To: [EMAIL PROTECTED]Subject: Error 
conversion XML to PDF: Exception in thread main 
java.lang.OutOfMemoryError

  My name 
  is Alessandro Bicocchi, I works in Bonfiglioli Riduttori 
  (Italy).
  
   
  We create an XML file in ASCII of a 
  size 1 MB (the file XML is an order of 300 rows), when I launch Fop-parser 
  (fop0.20.3) to converte XML to PDF using XSL: the 
  parser stops when it processes the 28 row with this 
  message:
  "Exception in thread "main" 
  java.lang.OutOfMemoryError".
  My system is WinNt 4.0 Server, If you could help me solve the 
  problem in some way, I will be greatful.
   
  Thank you very much,
   
  Ing. Alessandro Bicocchi