mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
When out-of-process build crashes with OOME, write heap dump
This commit is contained in:
parent
c2c1d78f13
commit
de25cee3b8
|
@ -285,6 +285,7 @@ public class BuildDaemon extends UnicastRemoteObject implements RemoteBuildServi
|
||||||
if (debugPort != 0) {
|
if (debugPort != 0) {
|
||||||
arguments.add("-agentlib:jdwp=transport=dt_socket,quiet=y,server=y,address=" + debugPort + ",suspend=y");
|
arguments.add("-agentlib:jdwp=transport=dt_socket,quiet=y,server=y,address=" + debugPort + ",suspend=y");
|
||||||
}
|
}
|
||||||
|
arguments.add("-XX:+HeapDumpOnOutOfMemoryError");
|
||||||
|
|
||||||
arguments.add(BuildDaemon.class.getName());
|
arguments.add(BuildDaemon.class.getName());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user