@Override
  protected void initProcessStats(long id) {
    if (osStatisticsProvider.osStatsSupported()) {
      if (osStatsDisabled()) {
        logger.info(LogMarker.STATISTICS_MARKER,
            "OS statistic collection disabled by setting the osStatsDisabled system property to true.");
      } else {
        int retVal = osStatisticsProvider.initOSStats();
        if (retVal != 0) {
          logger.error(LogMarker.STATISTICS_MARKER,
              "OS statistics failed to initialize properly, some stats may be missing. See bugnote #37160.");
        }
        osStatisticsProvider.newSystem(getOsStatisticsFactory(), id);
        String statName = getStatisticsManager().getName();
        if (statName == null || statName.length() == 0) {
          statName = "javaApp" + getSystemId();
        }
        Statistics stats =
            osStatisticsProvider.newProcess(getOsStatisticsFactory(), id, statName + "-proc");
        processStats = osStatisticsProvider.newProcessStats(stats);
      }
    }
  }
Returns the <code>ProcessStats</code> for this Java VM. Note that <code>null</code> will be
returned if operating statistics are disabled.

@since GemFire 3.5
geode-core/src/main/java/org/apache/geode/internal/statistics/GemFireStatSampler.java