HBASE-10500 Some tools OOM when BucketCache is enabled

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1567687 13f79535-47bb-0310-9956-ffa450edef68