>org.apache.fop.image.FopImageFactory.resetCache();

I am a no expert in memory mgmt too. Just wanna add to the remark
already made.
If you reset the cache, the memory has to be recreated for every
invocation. This is time consuming particularly if same set of images
needs to be used in all the 250 PDF. Also try increasing your heap size
of JVM, if that mitigates your problem !

Ganesh

-----Original Message-----
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: RE: Memory consumption


> -----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]


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to