You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Andrzej Bialecki (Jira)" <ji...@apache.org> on 2020/07/29 13:55:00 UTC

[jira] [Created] (SOLR-14691) Metrics reporting should avoid creating objects

Andrzej Bialecki created SOLR-14691:
---------------------------------------

             Summary: Metrics reporting should avoid creating objects
                 Key: SOLR-14691
                 URL: https://issues.apache.org/jira/browse/SOLR-14691
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: metrics
            Reporter: Andrzej Bialecki


{{MetricUtils}} unnecessarily creates a lot of short-lived objects (maps and lists). This affects GC, especially since metrics are frequently polled by clients. We should refactor it to use {{MapWriter}} as much as possible.

Alternatively we could provide our wrappers or subclasses of Codahale metrics that implement {{MapWriter}}, then a lot of complexity in {{MetricUtils}} wouldn't be needed at all.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org