Skip to content

Commit

Permalink
Merge pull request #44 from skilbjo/java-out-of-memory
Browse files Browse the repository at this point in the history
Add jvm flags to deal with issue #43
  • Loading branch information
skilbjo authored Dec 22, 2019
2 parents 438f00e + 9d93fa3 commit 1a8cec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/bin/run-job
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ case "$(uname)" in
get_artifact_from_circle_ci

set +e; pkill java -u skilbjo -nx; set -e
JAVA_OPTS="-Duser.timezone=UTC -Xms256m -Xmx512m -XX:MaxMetaspaceSize=128m" ;;
JAVA_OPTS="-Duser.timezone=UTC -Xms256m -Xmx1g -XX:MaxMetaspaceSize=128m" # The flags below are to try to resolve "java.lang.OutOfMemoryError: GC overhead limit exceeded" errors
JAVA_OPTS="${JAVA_OPTS} -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -Xincgc" ;; # Note: -XX:+UseCompressedOops for 64bit only
esac

cmd="java $JAVA_OPTS -jar ${tmp_dir}/${app}.jar"
Expand Down

0 comments on commit 1a8cec8

Please sign in to comment.