Hello list,
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. I run FOP like this:
for ()
{
org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver();
driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
String strTemp = System.getProperty("java.io.tmpdir")+"ELKPUBLISH";
org.apache.fop.configuration.Configuration.put("baseDir","../publish");
File userConfigFile = new File("../publish/config.xml");
Options options = new Options(userConfigFile);
InputHandler inputHandler = new XSLTInputHandler(
new File(strTemp+"\\"+strXMLFile),
new File(objJob.getLayoutFile())
); ... File newFolder = new File(strOutputFolder);
newFolder.mkdirs();
XMLReader parser = inputHandler.getParser();
... FileOutputStream pdfStream = new FileOutputStream(strOutputFolder+strOutputFile);
driver.setOutputStream(pdfStream);
driver.render(parser, inputHandler.getInputSource());
pdfStream.flush();
pdfStream.close();
driver.reset();
driver = null;
org.apache.fop.image.FopImageFactory.resetCache();
Runtime.getRuntime().gc(); }
Nothing helped? Is there no possibility to get rid of this reserverd memory?
rgds Timo Haberkern
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
