private void checkHitRatio(List<HealthStatus> status) {
    if (cacheStats == null || isFirstEvaluation() || cacheStats.isClosed()) {
      return;
    }

    long deltaGets = cacheStats.getGets() - prevGets;
    if (deltaGets != 0) {
      long deltaLoadsCompleted = cacheStats.getLoadsCompleted() - prevLoadsCompleted;
      long deltaNetsearchesCompleted =
          cacheStats.getNetsearchesCompleted() - prevNetsearchesCompleted;

      double hits = deltaGets - (deltaLoadsCompleted + deltaNetsearchesCompleted);
      double hitRatio = hits / deltaGets;
      double threshold = config.getMinHitRatio();
      if (hitRatio < threshold) {
        String s = "The hit ratio of this Cache (" + hitRatio + ") is below the threshold ("
            + threshold + ')';
        status.add(okayHealth(s));
      }
    }
  }
Checks to make sure that the cache hit ratio during the previous health check interval is less
than the {@linkplain CacheHealthConfig#getMinHitRatio threshold}. If not, the status is "okay"
health.

<P>

The following formula is used to compute the hit ratio:

<PRE>
hitRatio = (gets - (loadsCompleted + netsearchesCompleted)) / (gets)
</PRE>


@see CachePerfStats#getGets
@see CachePerfStats#getLoadsCompleted
@see CachePerfStats#getNetsearchesCompleted
geode-core/src/main/java/org/apache/geode/admin/internal/CacheHealthEvaluator.java