public static void reportRamUsage(String measurementPoint){
  logger.info("");
  logger.info("Java VM RAM Usage " + measurementPoint);
  logger.info(String.format("   %-20s %-15s%10s%10s%10s%10s","NAME","TYPE","COMMITTED","INIT","MAX","USED"));
  for (int i=0; i < ramPoolType.length; i++) {
    logger.info(String.format("   %-20s %-15s%10d MB%7d MB%7d MB%7d MB",ramPoolName[i],ramPoolType[i],ramPoolCommitted[i] / (2 << 20),ramPoolInit[i] / (2 << 20),ramPoolMax[i] / (2 << 20),ramPoolUsed[i] / (2 << 20)));
  }
  logger.info("");
}

public static void reportRamUsage ( String measurementPoint ) { logger . info ( "" ) ; logger . info ( "Java VM RAM Usage " + measurementPoint ) ; logger . info ( String . format ( "   %-20s %-15s%10s%10s%10s%10s" , "NAME" , "TYPE" , "COMMITTED" , "INIT" , "MAX" , "USED" ) ) ; for ( int i = 0 ; i < ramPoolType . length ; i ++ ) { logger . info ( String . format ( "   %-20s %-15s%10d MB%7d MB%7d MB%7d MB" , ramPoolName [ i ] , ramPoolType [ i ] , ramPoolCommitted [ i ] / ( 2 << 20 ) , ramPoolInit [ i ] / ( 2 << 20 ) , ramPoolMax [ i ] / ( 2 << 20 ) , ramPoolUsed [ i ] / ( 2 << 20 ) ) ) ; } logger . info ( "" ) ; }
provide an end - of - run summary of ram usage
