private void logRuntimeStatistics(){
  String name=runtimeMXBean.getName();
  long uptime=runtimeMXBean.getUptime();
  String vmName=runtimeMXBean.getVmName();
  String vmVendor=runtimeMXBean.getVmVendor();
  StringBuilder sb=new StringBuilder();
  sb.append("VM: ");
  sb.append(vmName);
  sb.append(" (");
  sb.append(vmVendor);
  sb.append(") process: ");
  sb.append(name);
  sb.append(" uptime: ");
  sb.append(uptime);
  sb.append(" ms");
  log.info(sb.toString());
}

private void logRuntimeStatistics ( ) { String name = runtimeMXBean . getName ( ) ; long uptime = runtimeMXBean . getUptime ( ) ; String vmName = runtimeMXBean . getVmName ( ) ; String vmVendor = runtimeMXBean . getVmVendor ( ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "VM: " ) ; sb . append ( vmName ) ; sb . append ( " (" ) ; sb . append ( vmVendor ) ; sb . append ( ") process: " ) ; sb . append ( name ) ; sb . append ( " uptime: " ) ; sb . append ( uptime ) ; sb . append ( " ms" ) ; log . info ( sb . toString ( ) ) ; }
log the runtime statistics .
