Timo Haberkern wrote:
i have big problems. I use FOP embedded into a java application to
create approx. 250 PDF Files. In each of the files are 5 or more images
(JPGs or SVGs). The problem is that FOP consumes more and more memory.
This seems to indicate a memory leak, however, I wasn't able
to reproduce this. I have a server running FOP rendering dozens
of PDF files per day up for months, without any sign of a memory
leak in FOP.
There are a few suspects in your code:
Options options = new Options(userConfigFile);
Unless your user config file changes, do this only once.
InputHandler inputHandler = new XSLTInputHandler(
Try to use a Transformer object instead, as shown in some other
examples.
Nothing helped? Is there no possibility to get rid of this reserverd
memory?
If you could get a memory profiler and track down which kind of
object locks down the memory, you'll probably earn the inmeasurable
gratitude of the community.
Oh well, FOP before 0.20.4 *does* have memory leaks. Which version
are you using? Which XML parser? Any DTD/schema reference in your
XML? Which XSLT processor? Which JDK? Loooooong stretches of text
in your transformation result (may cause some static buffers to grow
unreasonably large)?
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]