xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Stote <RSt...@whitehilltech.com>
Subject RE: java.lang.OutOfMemoryError in FOP 0.20.5rc2 and FOP 0.20.5rc 3
Date Fri, 06 Jun 2003 14:52:12 GMT
Jean-Francois:

	I was able to render you document. I do have a couple of
suggestions. I could be wrong hear but you heap size setting look to be
incorrect to me. I have mine set as follows -Xmx768M, not -Xmx###mo(the mo
could be wrong, dunno though), I had to change your XML header to the
following: <?xml version="1.0" encoding="ISO-8859-1"?>

There are various style issue in you fo file that could be contributing to
you memory error. I know that my heap size increased to close to 500M while
rendering this file. (see debug below)

Setting this many attributes per cell could cause you to be creating many
un-necessary objects. 

<fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
text-align="center" border-bottom-width="0pt" padding-right="0pt"
border-style="solid" border-right-width="0.1pt" font-size="4px"
border-left-width="0.1pt" font-family="sans-serif" padding-top="2pt"
border-color="black" padding-bottom="2pt" border-top-width="0.1pt"
padding-left="0pt">

Is it possible to set some these attributes on the table and not the cell
each time?
font-family - doesn't have to be explicitly set each cell, does it?
font-size - if all you font I the same size through out the table set it on
the table not each cell.

I think you'll see some improvements, in addition I think you'll see a
performance increase as well. It took close to 5 mins to render this doc...

just some suggestions

Rob

[DEBUG] Last page-sequence produced 31 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 690Kb
[DEBUG] Current heap size: 496704Kb
[DEBUG] Total memory used: 496013Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 280203ms
[DEBUG] Pages rendered: 124
[DEBUG] Avg render time: 2259ms/page

-----Original Message-----
From: Selber Jean-François [mailto:jfselber@oxymel.com] 
Sent: Friday, June 06, 2003 11:17 AM
To: fop-user@xml.apache.org
Subject: Re: java.lang.OutOfMemoryError in FOP 0.20.5rc2 and FOP 0.20.5rc3

Sorry for people who are still using modem connections
You can find the file to  http://www.oxymel.com/FO.zip

I read your link : http://xml.apache.org/fop/running.html#memory

I used:

parameters used
-Xms128mo -Xmx512mo

the particarity of the document is that I have 3 tables with table-header
The document has 120 pages in 4 pages sequenses
The 4 pages sequenses are the same
With 3 pages it is ok
With 4 pages sequenses : error OutOfMemory

I don't anderstand why you can't read this file
<?xml version="1.0" encoding="UTF-8"?>

anyone has  the solution for this problem?
thanks

jf


----- Original Message -----
From: "Jeremias Maerki" <dev.jeremias@greenmail.ch>
To: <fop-user@xml.apache.org>
Sent: Friday, June 06, 2003 11:55 AM
Subject: Re: java.lang.OutOfMemoryError in FOP 0.20.5rc2 and FOP 0.20.5rc3


> Salut Jean-François
>
> It's the right list, but PLEASE DON'T send such big attachments to the
> mailing list! Think about the people who are still using modem
> connections. If you want to make such a file available, put it on a
> webserver and post a link. Thank you!
>
> A useful list of hints to solve this problem can be found here:
> http://xml.apache.org/fop/running.html#memory
>
> And by the way: The encoding declaration in the XSL-FO file you sent is
> probably wrong. It should probably read "ISO-8859-1" not "UTF-8" because
> I got an error message opening that file.
>
> On 06.06.2003 11:30:29 Selber Jean-François wrote:
> > I hope this mail is send to the right mailing list
> > When I try to create a PDF document with a table (20 pages) in a page
> > sequence. I have 4 pages sequence.
> > The result is an out of memory error.
> > I join the xml fo file used as entry in FOP (the unzip file size is
about 36
> > Mo)
> >
> > The version of FOP is 0.20.5rc2.
> > There is the same problem with the last version FOP is 0.20.5rc3
> >
> > anyone has  the solution for this problem?
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org

Mime
View raw message