[jboss-jira] [JBoss JIRA] (JGRP-1663) TimeScheduler3 could spawn too many threads

Igor Mazur (JIRA) jira-events at lists.jboss.org
Fri Jul 19 10:16:29 EDT 2013


Igor Mazur created JGRP-1663:
--------------------------------

             Summary: TimeScheduler3 could spawn too many threads
                 Key: JGRP-1663
                 URL: https://issues.jboss.org/browse/JGRP-1663
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 3.3.3
            Reporter: Igor Mazur
            Assignee: Bela Ban
            Priority: Optional


With default timer thread pool settings this code could spawn tousands of threads:

protected void submitToPool(final Task entry) {
        try {
            pool.execute(entry);
        }
        catch(RejectedExecutionException rejected) { // only thrown if rejection policy is "abort"
            Thread thread=timer_thread_factory != null?
              timer_thread_factory.newThread(entry, "Timer temp thread")
              : new Thread(entry, "Timer temp thread");
            thread.start();
        }
    }

On my environment I got 19000 threads.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list