Hi fop-users,
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). The code causing this was:
<fo:block font-family="'Arial Unicode MS'">✔</fo:block>
In this particular case there were two solutions:
1. Remove the Unicode font for a smaller one containing the required
symbol
2. Increase the memory
About (1) I can be brief: that is hardly a solution when you need many
symbols or special characters (i.e., Chinese etc). About (2) I can also
be brief: suppose you need more than 1 of these fonts, do I need to keep
increasing memory (and walk by at the memory shop)? I'd rather not to.
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? And,
since more often than not only a few widths are needed, by reading it as
SAX stream would decrease this memory use (and/or speeds up the
processing of it)? Perhaps it is a good idea to add it to the memory
usage hints here:
http://xmlgraphics.apache.org/fop/0.93/running.html#memory ?
I know this inquiry is not really a question, but rather a bug report
with a work-around, but I though it'd be good to let you know ;)
Cheers,
-- Abel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]