[xep-support] Java out of memory error
Danny Vint
dvint at mindspring.com
Wed Feb 6 14:09:24 PST 2002
At 11:57 PM 2/6/2002 +0300, you wrote:
>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);
Didn't even know about this option - it even has its own -X flag to get
help for it! Anyway I had thought that it was strange that while I watched
the Task Manager memory usage that I never got a spike in usage that would
correspond to the process failing. I had just added a GB of RAM to my
machine, so I used -Xmx900MB and -Xms900MB and it now runs just fine. Now
when Java takes off it uses almost all the memory that is available shown
in the Memory usage window.
>
>- you use the latest stable JDK release (1.3.1) and HotSpot is turned on;
Was using 1.3.0 don't see how to turn on Hotspot
>
>- your code uses as few tables as possible - e.g. you should never
> use tables to indent text à la HTML;
No all my tables are used to format tabular data. There are hundreds of
them and the worst case maybe runs 3 pages. I do have lots of formatting
collisions, but they are simple 5 column tables,
>
>- 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
---------------------------------------------------------------------------
Danny Vint
http://www.dvint.com
http://www.xml.dvint.com
-------------------
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