try {
final StringBuilderNewLineAppender sb = new StringBuilderNewLineAppender(new StringBuilder());
final ClassLoadingMXBean clmb = ManagementFactory.newPlatformMXBeanProxy(mbsc,
ManagementFactory.CLASS_LOADING_MXBEAN_NAME, ClassLoadingMXBean.class);
sb.append(sm.getString("classloading.info"));
sb.append(sm.getString("classes.loaded", clmb.getLoadedClassCount()));
sb.append(sm.getString("classes.total", clmb.getTotalLoadedClassCount()));
sb.append(sm.getString("classes.unloaded", clmb.getUnloadedClassCount()));
final CompilationMXBean cmb = ManagementFactory.newPlatformMXBeanProxy(mbsc,
ManagementFactory.COMPILATION_MXBEAN_NAME, CompilationMXBean.class);
sb.append(sm.getString("complilation.info"));
sb.append(sm.getString("compilation.monitor.status", cmb.isCompilationTimeMonitoringSupported()));
sb.append(sm.getString("jit.compilar.name", cmb.getName()));
sb.append(sm.getString("compilation.time", JVMInformationCollector.millis2HoursMinutesSeconds(cmb.getTotalCompilationTime())));
return ( sb.toString() );
} catch(final Exception e) {
throw new RuntimeException(e);
}