HADOOP-11301. [optionally] update jmx cache to drop old metrics  (Maysam Yabandeh via stack)

(cherry picked from commit b36f29298247f6c5db9f6eff7c2f5177a0fe3de5)