[jboss-jira] [JBoss JIRA] (WFLY-6513) Provide an option to configure Weld global thread pool size
Martin Kouba (JIRA)
issues at jboss.org
Thu Apr 21 02:01:01 EDT 2016
[ https://issues.jboss.org/browse/WFLY-6513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194911#comment-13194911 ]
Martin Kouba commented on WFLY-6513:
------------------------------------
Things to consider before implementing this:
* the thread pool is currently managed by {{org.jboss.as.weld.services.bootstrap.WeldExecutorServices}} and only used during application bootstrap (Weld 2.3)
* will be probably used during runtime for async events in the future (Weld 3.0)
* {{WeldExecutorServices}} has {{ServiceController.Mode.ON_DEMAND}} initial mode, i.e. it's stopped when no CDI application is running
* even though the max thread pool size is taken into account, it might be ignored - the current implementation takes no more than {{Runtime.getRuntime().availableProcessors()}} threads during bootstrap
I think it does not make sense to allow the users to configure the thread pool size for now. Though, it might be reasonable to set a hard coded keep alive time for the thread pool, similarly to [TimingOutFixedThreadPoolExecutorServices|https://github.com/weld/core/blob/2.3/impl/src/main/java/org/jboss/weld/executor/TimingOutFixedThreadPoolExecutorServices.java]
> Provide an option to configure Weld global thread pool size
> ------------------------------------------------------------
>
> Key: WFLY-6513
> URL: https://issues.jboss.org/browse/WFLY-6513
> Project: WildFly
> Issue Type: Feature Request
> Components: CDI / Weld
> Reporter: Tomas Remes
> Assignee: Martin Kouba
> Priority: Minor
>
> As mentioned in https://issues.jboss.org/browse/WFLY-4653 it could be useful to have an option to configure Weld thread pool size e.g. in standalone configuration. Currently the size of the thread pool is hardcoded at https://github.com/wildfly/wildfly/blob/master/weld/src/main/java/org/jboss/as/weld/services/bootstrap/WeldExecutorServices.java#L51
> However note that this thread pool is used ONLY during the bootstrap of the Weld container.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list