[erlang-patches] Out of memory building docs

Tuncer Ayaz <>
Tue Mar 30 03:47:44 CEST 2010

On Tue, Mar 30, 2010 at 1:04 AM, Jay Nelson <> wrote:
> On an iMac G5 OS X 10.5.8 with 1.25 GB RAM, I get an exception in thread
> "main" java.lang.OutOfMemoryError: Java heap space on ../pdf/kernel-2.14.pdf
> when I do a 'make docs' from a vanilla clone of the 'dev' branch.

Increase memory available to the JVM used by fop:
export FOP_OPTS=-Xmx512m

As documented in otp/INSTALL.md:
We have sometimes experienced problems with Sun's `java` running out of
memory when running `fop`. Increasing the amount of memory available
as follows has in our case solved the problem.

    $ export FOP_OPTS="-Xmx<Installed amount of RAM in MB>m"

More information can be found at

More information about the erlang-patches mailing list