You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Richard Yin (JIRA)" <ji...@apache.org> on 2015/06/12 09:13:00 UTC

[jira] [Commented] (SLING-4676) Clean up threads or refresh threads when put back into the pool

    [ https://issues.apache.org/jira/browse/SLING-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583076#comment-14583076 ] 

Richard Yin commented on SLING-4676:
------------------------------------

Hello, 
Is there any ETA at this moment for when this issue will get fixed or to be included in a release? Fix version seems to be noted as "Commons Threads 3.2.2", when is the approximate date for that release to be generally available? Thanks. 

> Clean up threads or refresh threads when put back into the pool
> ---------------------------------------------------------------
>
>                 Key: SLING-4676
>                 URL: https://issues.apache.org/jira/browse/SLING-4676
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Carsten Ziegeler
>             Fix For: Commons Threads 3.2.2
>
>
> A thread from the pool might use thread locals which are - for whatever reason - not cleaned up, when the thread is put back into the pool.
> This can lead to memory leaks.
> We should protect against this.
> Unfortunately there is no official API to clean up thread locals. There are solutions out there using reflection.
> Another option is to simply discard the thread object after some time of usage and use a fresh one. This needs to include thread objects staying in the pool for a long time



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)