poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59805] LocaleUtil causes memory leak
Date Wed, 06 Jul 2016 04:53:35 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59805

Javen O'Neal <onealj@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Javen O'Neal <onealj@apache.org> ---
(In reply to Javen O'Neal from comment #1)
> I think Catalina is reporting a false positive here.

I take that back. This may cause a PermGen memory leak since every thread holds
onto a reference to the ThreadLocal subclass.ly.

Searching for ThreadLocal memory leak, I got this result:
https://stackoverflow.com/questions/17968803/threadlocal-memory-leak

Log4j had a similar problem on their ThreadLocalMap.
This memory leak was fixed here:
https://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/MDC.java?annotate=1231361&diff_format=f&pathrev=1231361#l177

The solution is to call ThreadLocal.remove somewhere...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message