On Mar 4, 2007, at 23:20, Abel Braaksma wrote:
Hi,
The situation was: "it" works on the commandline but not in Tomcat
in a servlet. After some time, we figured out that "it" was causing
an OutOfMemoryError from the FOP Processor, *after* it reads in the
a rather large, but not substantial, font metrics file (700KB).
Increasing Tomcat's maximum mem-use to 768MB solved the problem (it
jumps to about 540MB in a second).
<snip />
I've no idea how the file is read in, but it contains some 51.000
glyphs (which translates into the same amount of cid-widths in the
font metrics file) and the corresponding TTF is 23MB. Though fairly
large, this is common among Unicode typefaces. Perhaps the XML is
read in as DOM?
AFAICT, it is already parsed with SAX (see
org.apache.fop.fonts.FontReader).
It doesn't seem like it's those widths by itself that are causing the
problem. An array of 50K int-widths should correspond to min. 200K
max. 400K of heap. :/
Can you provide a bit more context information?
Does it appear as a cumulative effect, or does the problem also
present itself if the document has only one fo:block with a few
characters?
Does it (only) appear in a context where multiple documents are being
rendered in parallel?
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]