xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Pestel" <christian.pes...@orange.fr>
Subject FOP 1.0 out of memory on a fo with 100.000 <fo:table>
Date Thu, 25 Oct 2012 10:57:02 GMT
Hi,

I try to convert a fo with 10.000 <fo:table> to pdf with Fop 1.0
I use java.exe -Xmx1024m –Xms1024m  (8 Gb RAM on my host)
The java.exe memory reaches 1Gb and after a long time (10 mn) , the java crash with “java.lang.OutOfMemoryError:
Java heap space”

The length of fo file is 500 Mb.

I think you have worked a lot on memory management to allow free this memory after each page
pdf created.
Is Sax parser load entirely the fo file in memory before starting to create the first pages
of pdf ? 

my example :

<!—1 –>
<fo:table table-layout="fixed">
  <fo:table-column column-number="1" column-width="65.8pt" />
  <fo:table-column column-number="2" column-width="65.8pt" />
  <fo:table-column column-number="3" column-width="65.8pt" />
  <fo:table-column column-number="4" column-width="65.8pt" />
  <fo:table-column column-number="5" column-width="65.8pt" />
  <fo:table-column column-number="6" column-width="65.8pt" />
  <fo:table-column column-number="7" column-width="65.8pt" />
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
      <fo:table-cell border-width="0.5pt" border-style="solid" border-color="black" width="65.8pt">
          <fo:block><fo:inline font-family="Calibri" font-size="11pt">AA</fo:inline></fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>    


<!—2 –>

<fo:table table-layout="fixed">

...

</fo:table>    

...

<!—100.000 –>

<fo:table table-layout="fixed">

...

</fo:table>



Christian Pestel

christian.pestel@orange.fr

Mime
View raw message