Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Not A Bug
-
2.6.3
-
None
Description
In org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl there is
public void returnBlocking(Throwable cause) { lock.lock(); try { response = new ActiveMQExceptionMessage(ActiveMQClientMessageBundle.BUNDLE.unblockingACall(cause)); sendCondition.signal(); } finally { lock.unlock(); } }
The response is created but not used normally.
For every get/close connection there is the a ActiveMQExceptionMessage incl. stacktrace created and abandoned.
This shows a high allocation pressure in jmc (8 MB garbage/200 calls).
please don't precreate the unused exception (maybe use a producer producing exception when really needed)