[jboss-jira] [JBoss JIRA] (WFLY-5332) Allow configure max-threads and core-threads independently. Allow idle thread reusage.

Panagiotis Sotiropoulos (JIRA) issues at jboss.org
Thu Sep 24 11:14:00 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112217#comment-13112217 ] 

Panagiotis Sotiropoulos edited comment on WFLY-5332 at 9/24/15 11:13 AM:
-------------------------------------------------------------------------

Files of the flow diagrams of JBossThreadPoolExecutor that is used at the point and JBossThreadPoolReuseIdleThreadsExecutor that is proposed.


was (Author: takis):
Files of the state diagrams of JBossThreadPoolExecutor that is used at the point and JBossThreadPoolReuseIdleThreadsExecutor that is proposed.

> Allow configure max-threads and core-threads independently. Allow idle thread reusage.
> --------------------------------------------------------------------------------------
>
>                 Key: WFLY-5332
>                 URL: https://issues.jboss.org/browse/WFLY-5332
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: EJB
>            Reporter: Panagiotis Sotiropoulos
>            Assignee: Panagiotis Sotiropoulos
>         Attachments: JBossThreadPoolExecutor.jpg, JBossThreadPoolReuseIdleThreadsExecutor.jpg
>
>
> Description of problem:
> It looks like the ejb3 subsystem thread pool configuration is hard coded to create an unbounded thread pool, where it it looks like max-threads = core-threads, and thus the threads will increase up to the max-threads configured and then remain there.  The keep-alive setting which appears in many of the docs & default configurations is ineffective since max=core.
> ejb3/src/main/java/org/jboss/as/ejb3/subsystem/EJB3SubsystemRootResourceDefinition.java
> I tried defining a different thread pool in the threads subsystem and tried to reference it from the ejb3 subsystem, however it looks like the ejb3 subsystem only looks for thread pools configured in the ejb3 subsystem.
> Additional desired functionality according to PRODMGT-1401:
> "the desired functionality is to, when a new request arrives
> and there is an idle thread, use that thread instead of creating a new 
> thread [up until max-threads]."



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


More information about the jboss-jira mailing list