HBASE-11267 Dynamic metrics2 metrics may consume large amount of heap memory