You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Vincent Hennebert <vh...@gmail.com> on 2008/11/18 12:40:11 UTC
OutOfMemory Error When Building Website
Hi,
I have the following error when building the website with Forrest:
* [352/33] [0/0] 8.844s 0b compliance.pdf
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedList.addAll(LinkedList.java:278)
at java.util.LinkedList.addAll(LinkedList.java:247)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:361)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:234)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:119)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
...
The build runs fine when disabling PDF output. I have the same error
even if I set -Xmx to the total amount of memory on my system (4GB,
I doubt it’s not enough...). Both with jdk 1.5 and 1.6 (Linux 64 bit).
Has anyone encountered the same problem? While I investigate, could
somebody who doesn’t have it re-build and update the website to reflect
the latest changes?
Thanks,
Vincent
Re: OutOfMemory Error When Building Website
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ok, published, but man, have I got a mess of different Forrest versions.
Some work, some don't. That's what happens if you become a committer,
do some experiments and don't have the time to follow everything.
Anyway, the latest deployment is done with Forrest Trunk revision 656962
on Windoze and Sun Java 6.0_03. No OutOfMemoryError. With a different
Forrest in my Ubuntu VM and Sun Java 1.4.2_18, I had no problem, either,
but the SVN deployment didn't want to cooperate. All on 32 bits.
On 18.11.2008 13:48:56 Jeremias Maerki wrote:
> I'll look into it right away.
>
> On 18.11.2008 12:40:11 Vincent Hennebert wrote:
> > Hi,
> >
> > I have the following error when building the website with Forrest:
> > * [352/33] [0/0] 8.844s 0b compliance.pdf
> > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> > at java.util.LinkedList.addAll(LinkedList.java:278)
> > at java.util.LinkedList.addAll(LinkedList.java:247)
> > at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:361)
> > at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
> > at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> > at org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:234)
> > at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> > at org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:119)
> > at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> > at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
> > ...
> >
> > The build runs fine when disabling PDF output. I have the same error
> > even if I set -Xmx to the total amount of memory on my system (4GB,
> > I doubt it’s not enough...). Both with jdk 1.5 and 1.6 (Linux 64 bit).
> >
> > Has anyone encountered the same problem? While I investigate, could
> > somebody who doesn’t have it re-build and update the website to reflect
> > the latest changes?
> >
> > Thanks,
> > Vincent
>
>
>
>
> Jeremias Maerki
Jeremias Maerki
Re: OutOfMemory Error When Building Website
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I'll look into it right away.
On 18.11.2008 12:40:11 Vincent Hennebert wrote:
> Hi,
>
> I have the following error when building the website with Forrest:
> * [352/33] [0/0] 8.844s 0b compliance.pdf
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> at java.util.LinkedList.addAll(LinkedList.java:278)
> at java.util.LinkedList.addAll(LinkedList.java:247)
> at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:361)
> at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
> at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> at org.apache.fop.layoutmgr.list.ListItemLayoutManager.getNextKnuthElements(ListItemLayoutManager.java:234)
> at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> at org.apache.fop.layoutmgr.list.ListBlockLayoutManager.getNextKnuthElements(ListBlockLayoutManager.java:119)
> at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
> at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
> ...
>
> The build runs fine when disabling PDF output. I have the same error
> even if I set -Xmx to the total amount of memory on my system (4GB,
> I doubt it’s not enough...). Both with jdk 1.5 and 1.6 (Linux 64 bit).
>
> Has anyone encountered the same problem? While I investigate, could
> somebody who doesn’t have it re-build and update the website to reflect
> the latest changes?
>
> Thanks,
> Vincent
Jeremias Maerki