Bug 1255494

Summary: [RFE] Allow configure max-threads and core-threads independently
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ricardo Martinelli de Oliveira <rmartine>
Component: EJBAssignee: Panagiotis Sotiropoulos <psotirop>
Status: CLOSED NOTABUG QA Contact: Jan Martiska <jmartisk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: TBD EAP 6CC: bbaranow, bmaxwell, cdewolf, david.lloyd, jmartisk, lywang, psotirop, remerson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-24 23:36:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1106790    

Description Ricardo Martinelli de Oliveira 2015-08-20 18:13:27 UTC
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.

Version-Release number of selected component (if applicable):
6.x

Comment 1 Ricardo Martinelli de Oliveira 2015-09-15 18:04:53 UTC
Complementing information to this bugzilla:

"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]."

Comment 3 Lyle Wang 2015-09-16 01:03:54 UTC
Jira PRODMGT-1401 created to address the new requirement customer is asking for 
--------------------
"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]."
--------------------

as well as including the info. in WFLY-5332

Comment 4 Panagiotis Sotiropoulos 2015-09-16 13:46:38 UTC
The creation of a new ThreadPoolExecutor is required.

Comment 17 Brad Maxwell 2016-03-24 23:36:28 UTC
This is an RFE not a but, the RFE for it is : PRODMGT-1401 , closing the bz as the rfe will be handled via PRODMGT-1401