mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-13 21:50:48 +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);
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user