https://issues.apache.org/bugzilla/show_bug.cgi?id=51150

             Bug #: 51150
           Summary: Add DecimalFormatCache.clean() method to prevent
                    memory leak with Tomcat
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Fop should provide method to clean DecimalFormatCache (and other ThreadLocals,
if any). 

Tomcat 7.0.11 complains about a memory leak:

SEVERE: The web application [/(snip)] created a ThreadLocal with key of type
[org.apache.fop.util.DecimalFormatCache.DecimalFormatThreadLocal] (value
[org.apache.fop.util.DecimalFormatCache$DecimalFormatThreadLocal@fb637b]) and a
value of type [java.text.DecimalFormat] (value [java.text.DecimalFormat@674dc])
but failed to remove it when the web application was stopped. Threads are going
to be renewed over time to try and avoid a probable memory leak. 


When FOP is being used with Tomcat, user should be able to add
DecimalFormatCache.clean() in destroy method of ContextListener, and prevent
memory leak.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to