[jboss-jira] [JBoss JIRA] (JGRP-1971) Cycling a channel results in leftover timer threads

Bela Ban (JIRA) issues at jboss.org
Fri Oct 23 06:01:00 EDT 2015


     [ https://issues.jboss.org/browse/JGRP-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban resolved JGRP-1971.
----------------------------
    Resolution: Done


> Cycling a channel results in leftover timer threads
> ---------------------------------------------------
>
>                 Key: JGRP-1971
>                 URL: https://issues.jboss.org/browse/JGRP-1971
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 3.6.7
>
>
> When a channel is cycled a few times in the same process (creating a channel and calling {{destroy()}} on it, there are leftover timer thread.
> The reason is that the timer thread pool uses {{LazyThreadFactory}}, which keeps a list of threads to potentially rename them at runtime. The element are weak references to threads, but because we don't run out of memory, those refs are never garbage-collected.
> SOLUTION: add a method {{destroy()}} to {{ThreadFactory}}, and {{LazyThreadFactory}} would simply clear the list when called.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list