You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/30 16:58:00 UTC

[jira] [Commented] (ARTEMIS-3741) Cache MBeanInfoHelper results

    [ https://issues.apache.org/jira/browse/ARTEMIS-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514820#comment-17514820 ] 

ASF subversion and git services commented on ARTEMIS-3741:
----------------------------------------------------------

Commit 5d970576da13b14b7b1cb48ebd9e7f3c731b44c4 in activemq-artemis's branch refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=5d97057 ]

ARTEMIS-3741 Cache MBeanInfoHelper results

The utility methods in
`org.apache.activemq.artemis.core.management.impl.MBeanInfoHelper` are
executed *a lot* - especially for Jolokia which is used by the web
console. The `MBeanOperationInfo` and `MBeanAttributeInfo` results are
static and reflection is slow therefore they should not be calculated
over and over again. Rather they should be calculated once and cached
for later use.

Caching these results significantly improves performance. Over the
course of 1,000,000 invocations the difference is several orders of
magnitude. This improves usability substantially when dealing with,
for example, tens of thousands of addresses and/or queues.


> Cache MBeanInfoHelper results
> -----------------------------
>
>                 Key: ARTEMIS-3741
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3741
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)