navina opened a new pull request #8684:
URL: https://github.com/apache/kafka/pull/8684


   `SelectorMetrics` has a per-connection metrics, which means the number of 
`MetricName` objects and the strings associated with it (such as group name and 
description) grows with the number of connections in the client. This overhead 
of duplicate string objects is amplified when there are multiple instances of 
kafka clients within the same JVM. 
   This patch address some of the memory overhead by making `metricGrpName` a 
constant and introducing a new constant `perConnectionMetricGrpName`. 
Additionally, the strings for metric name and description in `createMeter` have 
been interned since there are about 8 types of meter metric for every single 
client.  
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to