Does cocoon-2.1 ever call org.apache.fop.image.FopImageFactory.resetCache()
to stop the fop image cache from consuming all memory?

Maybe it should be called after rendering every page to avoid having to use the "dummy 
parameter"
mentioned below.

Is it safe to call this method while images are being rendered (for other requests)?

At the bottom of http://xml.apache.org/fop/graphics.html it says:
<quote>
Image caching
FOP caches images between runs. The URL is used as a key to identify images which 
means that when a particular URL appears again,
the image is taken from the cache. If you have a servlet that generates a different 
image each time it is called with the same URL
you need to use a constantly changing dummy parameter on the URL to avoid caching.

Currently, the images are not automatically released when an OutOfMemoryError is 
imminent. The image cache can grow to a
considerable size over time when a lot of different URLs are in use. Starting with 
version 0.20.5 you can call
org.apache.fop.image.FopImageFactory.resetCache() to manually empty the cache. Image 
caching will be improved as part of our
redesign effort.
</quote>


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

Reply via email to