Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FOP: how to clean up everything to free memory?

416044Sep 23 2004 — edited Dec 1 2004
When I generate PDF files via Apache FOP, the JVM memory consumption rises for several megabytes for each document. I tried to free as much resources as i know of:
    /**
     * Tries to free as much resources as possible to free memory.
     */
    public void cleanUp() {
        FopImageFactory.resetCache(); //empty image cache to free up memory
        MessageHandler.setScreenLogger(new ConsoleLogger(ConsoleLogger.LEVEL_INFO)); //reset logger
    }//cleanUp()
and also free (set to null) the reference to my FOP processing class. But the memory (for these FOP processing classes) still keeps increasing. Any further possibility to free FOP resources?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2004
Added on Sep 23 2004
1 comment
270 views