Skip to content

Commit

Permalink
Merge pull request #20 from dvanherbergen/master
Browse files Browse the repository at this point in the history
Check platform before setting G1GC.
  • Loading branch information
kaikreuzer committed Jan 5, 2016
2 parents 0c6e90c + eae5ec6 commit 2304d61
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,9 @@ export JAVA_OPTS="${JAVA_OPTS}
#
# set jvm options
#
export EXTRA_JAVA_OPTS="-XX:+UseG1GC -Xms64m -Xmx256m"
ARCH=`arch`
case "$ARCH" in
*arm*) export EXTRA_JAVA_OPTS="-Xmx256m" ;;
*) export EXTRA_JAVA_OPTS="-XX:+UseG1GC -Xmx256m" ;;
esac

0 comments on commit 2304d61

Please sign in to comment.