private static int getProcessCount() {
    File proc = new File("/proc");
    String[] procFiles = proc.list();
    if (procFiles == null) {
      // unknown error, continue without this stat
      return 0;
    }
    return procFiles.length - nonPidFilesInProc;
  }
@return the number of running processes on the system
geode-core/src/main/java/org/apache/geode/internal/statistics/platform/LinuxProcFsStatistics.java