mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 22:25:33 +00:00
Add a gc call after the build as that's a good time to perform it
This commit is contained in:
@@ -405,8 +405,6 @@ public class Server implements AutoCloseable, Runnable {
|
|||||||
LOGGER.info("Dispatch message: " + m);
|
LOGGER.info("Dispatch message: " + m);
|
||||||
connection.dispatch(m);
|
connection.dispatch(m);
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
|
||||||
// ignore
|
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
LOGGER.error("Error dispatching events", t);
|
LOGGER.error("Error dispatching events", t);
|
||||||
}
|
}
|
||||||
@@ -427,6 +425,7 @@ public class Server implements AutoCloseable, Runnable {
|
|||||||
} finally {
|
} finally {
|
||||||
LOGGER.info("Daemon back to idle");
|
LOGGER.info("Daemon back to idle");
|
||||||
updateState(DaemonState.Idle);
|
updateState(DaemonState.Idle);
|
||||||
|
System.gc();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user