Skip to content

Commit

Permalink
Merge pull request #5 from jkutner/master
Browse files Browse the repository at this point in the history
Set Java heap size lower than default
  • Loading branch information
salsakran committed Mar 31, 2017
2 parents 6ff1d09 + cd4d7ee commit 76c193b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/start
Expand Up @@ -82,4 +82,11 @@ if [ ! -z "$RDS_HOSTNAME" ]; then
export MB_DB_PORT=$RDS_PORT
fi

limit=$(ulimit -u)
case $limit in
256) # Free, Hobby, or 1X Dyno
JAVA_OPTS="-Xmx256m -Xss512k $JAVA_OPTS"
;;
esac

exec java -Dfile.encoding=UTF-8 $JAVA_OPTS -jar ./target/uberjar/metabase.jar

0 comments on commit 76c193b

Please sign in to comment.