> -----Original Message----- > From: Timo Haberkern [mailto:[EMAIL PROTECTED] > > 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); > >
<snip/> I'm not really the expert on JVM Memory Management, but AFAICT these declarations belong outside the 'for'-loop. (Not sure whether this is causing memory problems, but it just seems ... more elegant. If they really do not depend on the variables changing in the loop, that is... If behaviour would be what I'm guessing, then these would consume memory - the total of which would only be released on completion of the loop...) <snip/> > driver = null; You won't be needing this. Just resetting the Driver should be ok. I also notice you have read this (?) http://xml.apache.org/fop/running.html#memory Have you tried the multiple page-sequences tip? Hope it helps. Greetz, Andreas Delmelle --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
