Bug 1255494 - [RFE] Allow configure max-threads and core-threads independently
Summary: [RFE] Allow configure max-threads and core-threads independently
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: TBD EAP 6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Panagiotis Sotiropoulos
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks: 1106790
TreeView+ depends on / blocked
 
Reported: 2015-08-20 18:13 UTC by Ricardo Martinelli de Oliveira
Modified: 2019-10-10 10:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-24 23:36:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker PRODMGT-1401 0 Major Resolved Fine-grained control on ejb3 thread-pool and reuse idle threads in pool before creating new 2018-02-09 08:28:08 UTC
Red Hat Issue Tracker WFLY-5332 0 Major Resolved Allow configure max-threads and core-threads independently. Allow idle thread reusage. 2018-02-09 08:28:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.