GitHub user tabish121 opened a pull request:
https://github.com/apache/activemq-artemis/pull/2277
ARTEMIS-2062 Only attempt to refill credit when needed
Avoid firing the offerProducerCredit code when we know that the credit
is low enough that a refill is needed which avoids lock contention and
garbage creation as each inbound message is processed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tabish121/activemq-artemis ARTEMIS-2062
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2277.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2277
----
commit 04657c323f2f3235320aa5b14130acb07fc13c01
Author: Timothy Bish <tabish121@...>
Date: 2018-08-28T20:11:14Z
ARTEMIS-2062 Only attempt to refill credit when needed
Avoid firing the offerProducerCredit code when we know that the credit
is low enough that a refill is needed which avoids lock contention and
garbage creation as each inbound message is processed.
----
---