Show max Heap size in the FASTEN server in development mode
@@ -161,6 +161,7 @@ public class FastenServer implements Runnable {
@Override
public void run() {
setLoggingLevel();
+ if (!deployMode){ showSysInfo(); }
logger.debug("Loading plugins from: {}", pluginPath);
@@ -338,6 +339,15 @@ public class FastenServer implements Runnable {
}
}
+ /**
+ * Shows system info. It can be useful for debugging purpose.
+ */
+ private void showSysInfo() {
+ logger.info("************************System Info***************************");
+ logger.info("Max Heap size: " + Runtime.getRuntime().maxMemory() + " Bytes");
+ logger.info("**************************************************************");
+ }
+
public static void main(String[] args) {
int exitCode = new CommandLine(new FastenServer()).execute(args);
System.exit(exitCode);
