[
https://issues.apache.org/jira/browse/SOLR-6586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158182#comment-14158182
]
Mark Miller edited comment on SOLR-6586 at 10/3/14 4:56 PM:
------------------------------------------------------------
When using JmxMonitoredMap in a pattern of:
JmxMonitoredMap#getMBeanInfo // to get the attributes
JmxMonitoredMap#getAttribute
JmxMonitoredMap#getAttribute
...
Each call of getAttribute calls getStatistics on the SolrInfoMBean.
If there is any expense to the getStatistics call, this can be fairly painful.
For example, the ReplicationHandler is registered so that it's getStatistics
neeeds to be called twice if you go through all of the SolrInfoMBeans. However,
because it's called for each attribute, it's actually called 2 * number of
atrribs times. Because the replication handler does things like getting the
size of the index directory, this is fairly wasteful.
It seems one option around it is to implement getters for each attribute on the
ReplicationHandler and other SolrInfoMBeans. That seems quite cumbersome and
long term annoying though.
was (Author: [email protected]):
When using JmxMonitoredMap in a pattern of:
JmxMonitoredMap#getMBeanInfo // to get the attributes
JmxMonitoredMap#getAttribute
JmxMonitoredMap#getAttribute
> JmxMonitoredMap#getAttribute is not very efficient.
> ---------------------------------------------------
>
> Key: SOLR-6586
> URL: https://issues.apache.org/jira/browse/SOLR-6586
> Project: Solr
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Mark Miller
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]