[xep-support] Java out of memory error

Nikolai Grigoriev grig at renderx.com
Wed Feb 6 12:57:35 PST 2002


Danny,

> I've got a document that when printed in Word runs about 500 pages.
....
> I belive I need to run this as a single file for the following reasons:
> - It is really one document
> - I want a standard table of contents at the front
> - I want inter-document links - current based upon id/idref
> - I want a PDF bookmarks table of contents for everything
> - I would like to get a linked Index built (but this isn't there currently)

> Has anyone else run into this problem and found a work around
> for what I think the problems are above?

I believe you just hit the limitations of current technology. Memory
consumption with huge tables is a painful issue for all Java-based
formatters. There is not much to advise in your case. Just make sure
that common prescriptions are all observed:

- your java call has -Xmx and -Xms switches set to the maximum
value that the RAM of your machine affords (typically, around
200 MB for a machine with 256MB of RAM);

- you use the latest stable JDK release (1.3.1) and HotSpot is turned on;

- your code uses as few tables as possible - e.g. you should never
  use tables to indent text à la HTML;

- if you have longish bulleted/numbered lists, consider restyling
  them with leader-based bullets.

Hope this helps at least to ensure that everything possible has been done :-).

Best regards,
Nikolai Grigoriev
RenderX

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list