https://bz.apache.org/bugzilla/show_bug.cgi?id=66521

Dominik Stadler <dominik.stad...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Dominik Stadler <dominik.stad...@gmx.at> ---
Apache POI uses thread-locals to improve performance of some operations. 

These are not real memory-leaks, as only a fixed amount of memory is allocated
and used per thread.

However Tomcat seems to perform some check on threads that are "returned to the
pool" and thus warns about these ThreadLocals still holding onto some objects. 


We have now added a method
org.apache.poi.util.ThreadLocalUtil#clearAllThreadLocals() which you can call
to clear out all thread-locals in Apache POI before finishing work inside the
Tomcat web-application.

This will be included in the next release.

See r1908263 for the implementation.

FYI, there is a similar method in XMLBeans which you may also need to call if
you are using code from module poi-ooxml.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to