File tree 2 files changed +7
-0
lines changed
test/external-modules/die-with-dignity
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 71
71
# specified
72
72
-XX:+HeapDumpOnOutOfMemoryError
73
73
74
+ # exit right after heap dump on out of memory error. Recommended to also use
75
+ # on java 8 for supported versions (8u92+).
76
+ 9-:-XX:+ExitOnOutOfMemoryError
77
+
74
78
# specify an alternative path for heap dumps; ensure the directory exists and
75
79
# has sufficient space
76
80
@heap.dump.path@
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ tasks.named("javaRestTest").configure {
22
22
23
23
testClusters. matching { it. name == " javaRestTest" }. configureEach {
24
24
systemProperty " die.with.dignity.test" , " true"
25
+ // disable exit on out of memory error to let DieWithDignityIT verify that OOM handling without that works (including OOMs that are not caused by
26
+ // memory like native threads. We leave it to the JVM to test that exit on OOM works via the flag.
27
+ jvmArgs ' -XX:-ExitOnOutOfMemoryError'
25
28
}
26
29
27
30
tasks. named(" test" ). configure {
You can’t perform that action at this time.
0 commit comments