[jira] Commented: (LANG-586) Use of ThreadLocal in ToStringStyle.java triggers memory leak in container environment
[ https://issues.apache.org/jira/browse/LANG-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830363#action_12830363 ] Matt Benson commented on LANG-586: -- merged for [lang] 2.5 r907129 > Use of ThreadLocal in ToStringStyle.java triggers memory leak in container > environment > -- > > Key: LANG-586 > URL: https://issues.apache.org/jira/browse/LANG-586 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* >Reporter: Mark Thomas > Fix For: 2.5, 3.0 > > > The thread local in org.apache.commons.lang3.builder.ToStringStyle is created > but never removed and no API is provided to remove it. If a webapp's use of > LANG triggers the loading of this class, a reference chain will be created > that will cause a memory leak on web application reload. > See http://markmail.org/thread/uetw2fdrsqgbh2cv for more info. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-586) Use of ThreadLocal in ToStringStyle.java triggers memory leak in container environment
[ https://issues.apache.org/jira/browse/LANG-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829861#action_12829861 ] Mark Thomas commented on LANG-586: -- Thanks for such a quick response. > Use of ThreadLocal in ToStringStyle.java triggers memory leak in container > environment > -- > > Key: LANG-586 > URL: https://issues.apache.org/jira/browse/LANG-586 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* >Reporter: Mark Thomas > Fix For: 3.0 > > > The thread local in org.apache.commons.lang3.builder.ToStringStyle is created > but never removed and no API is provided to remove it. If a webapp's use of > LANG triggers the loading of this class, a reference chain will be created > that will cause a memory leak on web application reload. > See http://markmail.org/thread/uetw2fdrsqgbh2cv for more info. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (LANG-586) Use of ThreadLocal in ToStringStyle.java triggers memory leak in container environment
[ https://issues.apache.org/jira/browse/LANG-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829783#action_12829783 ] Matt Benson commented on LANG-586: -- As it happens I'm currently working on similar issues at $work and just removed a ThreadLocal from the [flatfile] component; I'll take a look. > Use of ThreadLocal in ToStringStyle.java triggers memory leak in container > environment > -- > > Key: LANG-586 > URL: https://issues.apache.org/jira/browse/LANG-586 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* >Reporter: Mark Thomas > > The thread local in org.apache.commons.lang3.builder.ToStringStyle is created > but never removed and no API is provided to remove it. If a webapp's use of > LANG triggers the loading of this class, a reference chain will be created > that will cause a memory leak on web application reload. > See http://markmail.org/thread/uetw2fdrsqgbh2cv for more info. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.