I have a report with around 17 pages. One table with 12 columns. I use Velocity to put the data inside the FOP template. When it starts rendering the report (PDF or print preview) it consumes 50 MB. Second run another 50MB, third run another 50 MB , then with 256 MB RAM , when I go for forth run, CRASH BOOM BANG! Out of memeory exception.
This sounds like a self-inflicted problem. FOP does not lock memory across rendering runs if you release the Driver and Renderer object, with the exception of the external graphics cache. The cache should not require additional memory for rendering the same document a second time, and locking 50MB would require quite a few hi-res images anyway.
Therefore, check whether you release the Driver object you are creating, or at least call the reset() method after render() or run(), although the latter may still result in leaking memory. In addition you might try FOPImageFactory.resetCache() to clear the image cache.
J.Pietschmann
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]