make subversion pdf doc results in: Exception in thread "main" java.lang.OutOfMemoryError

Toralf Förster toralf.foerster at
Sun Dec 11 07:54:35 CST 2005

tfoerste at n22 ~/devel/svnbook/trunk/src/en $ make all-pdf
[INFO] [284]
Exception in thread "main" java.lang.OutOfMemoryError

Here's a solution for the problem:

 /usr/bin/fop uses the environment variable FOP_OPTS. Setting this
to "-Xms128m -Xmx256m"resolves the bug. This step isn't needed for PS doc.

So, the following works:
tfoerste at n22 ~/devel/svnbook/trunk/src/en $ export FOP_OPTS="-Xms128m 
-Xmx256m"; rm book/svn-book.pdf; make all-pdf

Should the possibility to set the environment variable FOP_OPTS be included in 
the Makefile ?

BTW, it seems that changing the variable FO_XSLTPROC_OPTS in 
src/tools/Makefile.base-vars didn't have any effect on the output. Regardless 
of specifying "--stringparam paper.type A4" or not the produced PS-files are 

That's my system:

tfoerste at n22 ~/devel/svnbook/trunk/src/en $ svn info

Path: .
Repository UUID: 092d64ff-61b7-0310-bf06-9acdfb04b43b
Revision: 1900
Node Kind: directory
Schedule: normal
Last Changed Author: maxb
Last Changed Rev: 1900
Last Changed Date: 2005-12-10 16:52:47 +0100 (Sat, 10 Dec 2005)

tfoerste at n22 ~/devel/svnbook/trunk/src/en $ java -version

java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

tfoerste at n22 ~/devel/svnbook/trunk/src/en $ uname -a

Linux n22 2.6.14-gentoo-r4 #6 Fri Dec 9 23:37:27 CET 2005 i686 Intel(R) 
Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux


Toralf Förster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the svnbook-dev mailing list