use of org.infinispan.commons.jdkspecific.ProcessInfo in project infinispan by infinispan.
the class Bootstrap method logJVMInformation.
private void logJVMInformation() {
Logger logger = Logger.getLogger("BOOT");
logger.info("JVM " + System.getProperty("java.vm.name") + " " + System.getProperty("java.vm.vendor") + " " + System.getProperty("java.vm.version"));
ProcessInfo process = ProcessInfo.getInstance();
logger.info("JVM arguments = " + process.getArguments());
logger.info("PID = " + process.getPid());
if (logger.isLoggable(Level.FINE)) {
StringBuilder sb = new StringBuilder("Classpath JARs:" + System.lineSeparator());
URLClassLoader cl = (URLClassLoader) this.getClass().getClassLoader();
for (URL url : cl.getURLs()) {
sb.append(" ").append(url).append(System.lineSeparator());
}
logger.fine(sb.toString());
sb = new StringBuilder("System properties:" + System.lineSeparator());
for (Map.Entry<Object, Object> p : System.getProperties().entrySet()) {
sb.append(" ").append(p.getKey()).append('=').append(p.getValue()).append(System.lineSeparator());
}
logger.fine(sb.toString());
}
}
Aggregations