From 815c21bdf4206ddbf589f3a24e9438da3f732dab Mon Sep 17 00:00:00 2001 From: Kohei Tamura Date: Mon, 26 Dec 2016 11:05:00 +0900 Subject: [PATCH] Add JVM options to cause OOME (GC overhead limit exceeded) easily. --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index dcf87fbb..accb959b 100644 --- a/pom.xml +++ b/pom.xml @@ -133,6 +133,8 @@ -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M + -XX:GCTimeLimit=15 + -XX:GCHeapFreeLimit=50 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/ -XX:ErrorFile=logs/hs_err_pid%p.log