Skip to content

Commit

Permalink
configure crash reports stuff directly at JVM level
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Apr 4, 2020
1 parent 2a32790 commit cb886dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/travis_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ if [ ! -z "$TF_BUILD" ] ; then
ARTIFACTS_FILE=${BUILD_BUILDNUMBER}.tar.gz
fi

# enable coredumps
ulimit -c unlimited
JVM_CRASH_REPORTS_LOCATION="${ARTIFACTS_DIR}/jvm-crash-reports"
export JAVA_TOOL_OPTIONS="-XX:ErrorFile=$JVM_CRASH_REPORTS_LOCATION -XX:HeapDumpPath=$JVM_CRASH_REPORTS_LOCATION -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$JVM_CRASH_REPORTS_LOCATION"

if [ $TEST == $STAGE_PYTHON ]; then
CMD=$PYTHON_TEST
CMD_PID=$PYTHON_PID
Expand Down

0 comments on commit cb886dc

Please sign in to comment.