private void logOperatingSystemStatistics(){
  String arch=operatingSystemMXBean.getArch();
  String name=operatingSystemMXBean.getName();
  String version=operatingSystemMXBean.getVersion();
  int availCpus=operatingSystemMXBean.getAvailableProcessors();
  double loadAverage=operatingSystemMXBean.getSystemLoadAverage();
  StringBuilder sb=new StringBuilder();
  sb.append("System: ");
  sb.append(name);
  sb.append(' ');
  sb.append(version);
  sb.append(' ');
  sb.append(arch);
  sb.append(" (");
  sb.append(availCpus);
  sb.append(" cpu(s) load average: ");
  sb.append(loadAverage);
  log.info(sb.toString());
  logGraphicalLoadAverage(loadAverage,availCpus);
}

private void logOperatingSystemStatistics ( ) { String arch = operatingSystemMXBean . getArch ( ) ; String name = operatingSystemMXBean . getName ( ) ; String version = operatingSystemMXBean . getVersion ( ) ; int availCpus = operatingSystemMXBean . getAvailableProcessors ( ) ; double loadAverage = operatingSystemMXBean . getSystemLoadAverage ( ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "System: " ) ; sb . append ( name ) ; sb . append ( ' ' ) ; sb . append ( version ) ; sb . append ( ' ' ) ; sb . append ( arch ) ; sb . append ( " (" ) ; sb . append ( availCpus ) ; sb . append ( " cpu(s) load average: " ) ; sb . append ( loadAverage ) ; log . info ( sb . toString ( ) ) ; logGraphicalLoadAverage ( loadAverage , availCpus ) ; }
log the operating system statistics .
