[
https://issues.apache.org/jira/browse/ARTEMIS-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17293815#comment-17293815
]
Francesco Nigro commented on ARTEMIS-3131:
------------------------------------------
This could be implemented by sharing the event loop group between acceptors:
see
https://github.com/apache/activemq-artemis/blob/f9e23def8d34ea2bbba2c0a77087f7c101960017/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java#L404
> NettyAcceptors and NettyConnectors aren't sharing EventLoopGroups
> -----------------------------------------------------------------
>
> Key: ARTEMIS-3131
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3131
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 2.17.0
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Major
>
> Currently a broker started with N acceptors creates N EventLoopGroups ie N x
> (3 x cores) different event loops/threads.
> Same is happening with NettyConnectors.
> Ideally both should share any existing EventLoopGroup (using ref counting to
> shutdown the shared one) to save creating too many threads and waste
> unnecessary resources.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)