public static void logJVMInfo(){
  RuntimeMXBean runtime=ManagementFactory.getRuntimeMXBean();
  if (runtime != null) {
    LOG.info("vmName=" + runtime.getVmName() + ", vmVendor="+ runtime.getVmVendor()+ ", vmVersion="+ runtime.getVmVersion());
    LOG.info("vmInputArguments=" + runtime.getInputArguments());
  }
}

public static void logJVMInfo ( ) { RuntimeMXBean runtime = ManagementFactory . getRuntimeMXBean ( ) ; if ( runtime != null ) { LOG . info ( "vmName=" + runtime . getVmName ( ) + ", vmVendor=" + runtime . getVmVendor ( ) + ", vmVersion=" + runtime . getVmVersion ( ) ) ; LOG . info ( "vmInputArguments=" + runtime . getInputArguments ( ) ) ; } }
log information about the currently running jvm .
