Bug 1470793 - [GSS](6.4.z) global thread pool is not shared among multiple RA connection factories
Summary: [GSS](6.4.z) global thread pool is not shared among multiple RA connection fa...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: HornetQ
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Yong Hao Gao
QA Contact: Peter Mackay
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 16:44 UTC by Amine Belkoura
Modified: 2020-12-14 09:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:46:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
thread dump of 6.2 (776.52 KB, text/plain)
2017-07-13 16:45 UTC, Amine Belkoura
no flags Details
thread dump of 6.4 (2.58 MB, text/plain)
2017-07-13 16:45 UTC, Amine Belkoura
no flags Details

Description Amine Belkoura 2017-07-13 16:44:19 UTC
Description of problem:

With a setting for the RA connection factory like following:

                  <pooled-connection-factory name="notif-hornetq-ra">
                           <transaction mode="xa"/>
                           <max-pool-size>80</max-pool-size>
                           <connectors>
                               <connector-ref connector-name="in-vm"/>
                           </connectors>
                           <entries>
                               <entry name="java:/NotificationXAConnectionFactory"/>
                           </entries>
                           <connection-ttl>-1</connection-ttl>
                           <reconnect-attempts>-1</reconnect-attempts>
                           <use-global-pools>false</use-global-pools>
                           <scheduled-thread-pool-max-size>15</scheduled-thread-pool-max-size>
                           <thread-pool-max-size>50</thread-pool-max-size>
                       </pooled-connection-factory>

For the same test, the number of threads increased more than 10x between hornetQ 2.3.25.SP8 and hornetQ 2.3.25.SP6


$ grep -r "HornetQ-client-factory-threads" threaddump_JBoss_6.2.4.txt  | wc -l
150
$ grep -r "HornetQ-client-factory-threads" threaddump_JBoss_6.4.15.txt  | wc -l
2226

it is possible that the global thread pool is shared between the multiple CF created.

Customer thread dumps attached


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


How reproducible:


Steps to Reproduce:


Actual results:


Expected results:


Additional info:

Comment 1 Amine Belkoura 2017-07-13 16:45:13 UTC
Created attachment 1297771 [details]
thread dump of 6.2

Comment 2 Amine Belkoura 2017-07-13 16:45:52 UTC
Created attachment 1297772 [details]
thread dump of 6.4


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