Skip to content

Commit

Permalink
Allow sbt to use more than 1G of heap.
Browse files Browse the repository at this point in the history
There was a mistake in sbt build file ( introduced by 012bd5f ) in which we set the default to 2048 and the immediately reset it to 1024.

Without this, building Spark can run out of permgen space on my machine.

Author: Reynold Xin <rxin@apache.org>

Closes #103 from rxin/sbt and squashes the following commits:

8829c34 [Reynold Xin] Allow sbt to use more than 1G of heap.
  • Loading branch information
rxin committed Mar 8, 2014
1 parent a99fb37 commit 8ad486a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbt/sbt-launch-lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ get_mem_opts () {
local mem=${1:-2048}
local perm=$(( $mem / 4 ))
(( $perm > 256 )) || perm=256
(( $perm < 1024 )) || perm=1024
(( $perm < 4096 )) || perm=4096
local codecache=$(( $perm / 2 ))

echo "-Xms${mem}m -Xmx${mem}m -XX:MaxPermSize=${perm}m -XX:ReservedCodeCacheSize=${codecache}m"
Expand Down

0 comments on commit 8ad486a

Please sign in to comment.