From 731e2836a6fa37000466268186a4ae289078283d Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 17 Feb 2020 11:05:23 +0100 Subject: [PATCH] Add a gc call after the build as that's a good time to perform it --- src/main/java/org/jboss/fuse/mvnd/daemon/Server.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/fuse/mvnd/daemon/Server.java b/src/main/java/org/jboss/fuse/mvnd/daemon/Server.java index 5466e437..2a8186ec 100644 --- a/src/main/java/org/jboss/fuse/mvnd/daemon/Server.java +++ b/src/main/java/org/jboss/fuse/mvnd/daemon/Server.java @@ -405,8 +405,6 @@ public class Server implements AutoCloseable, Runnable { LOGGER.info("Dispatch message: " + m); connection.dispatch(m); } - } catch (InterruptedException e) { - // ignore } catch (Throwable t) { LOGGER.error("Error dispatching events", t); } @@ -427,6 +425,7 @@ public class Server implements AutoCloseable, Runnable { } finally { LOGGER.info("Daemon back to idle"); updateState(DaemonState.Idle); + System.gc(); } }