When out-of-process build crashes with OOME, write heap dump

This commit is contained in:
Alexey Andreev 2023-09-25 19:26:02 +02:00
parent c2c1d78f13
commit de25cee3b8

View File

@ -285,6 +285,7 @@ public class BuildDaemon extends UnicastRemoteObject implements RemoteBuildServi
if (debugPort != 0) {
arguments.add("-agentlib:jdwp=transport=dt_socket,quiet=y,server=y,address=" + debugPort + ",suspend=y");
}
arguments.add("-XX:+HeapDumpOnOutOfMemoryError");
arguments.add(BuildDaemon.class.getName());