[jboss-jira] [JBoss JIRA] (WFLY-6630) "default" as default name for long-running-threads and short-running-threads leads to thread groups with the same name default-threads
Chao Wang (JIRA)
issues at jboss.org
Fri May 20 02:41:00 EDT 2016
[ https://issues.jboss.org/browse/WFLY-6630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Wang moved WFCORE-1559 to WFLY-6630:
-----------------------------------------
Project: WildFly (was: WildFly Core)
Key: WFLY-6630 (was: WFCORE-1559)
Affects Version/s: 10.0.0.Final
(was: 2.1.0.Final)
> "default" as default name for long-running-threads and short-running-threads leads to thread groups with the same name default-threads
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-6630
> URL: https://issues.jboss.org/browse/WFLY-6630
> Project: WildFly
> Issue Type: Enhancement
> Affects Versions: 10.0.0.Final
> Reporter: Martin Simka
> Assignee: Chao Wang
> Priority: Minor
>
> /subsystem=jca/workmanager=default/short-running-threads=default
> /subsystem=jca/workmanager=default/long-running-threads=default
> Thread group with name {{default-threads}} is created for both of these addresses. It's because thread group name is created from last element of resource's address + string {{-threads}}.
> [ThreadPoolManagementUtils.java#L166|https://github.com/wildfly/wildfly-core/blob/master/threads/src/main/java/org/jboss/as/threads/ThreadPoolManagementUtils.java#L166]
> {code:java}
> params.name = pathAddress.getLastElement().getValue();
> {code}
> [ThreadFactoryResolver.java#L149|https://github.com/wildfly/wildfly-core/blob/master/threads/src/main/java/org/jboss/as/threads/ThreadFactoryResolver.java#L149]
> {code:java}
> protected String getThreadGroupName(String threadPoolName) {
> return threadPoolName + "-threads";
> }
> {code}
> Thread groups for different resources shouldn't have the same name. Also such a general name {{default-threads}} could be confusing when debugging.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list