Repository: spark Updated Branches: refs/heads/master a99fb3747 -> 8ad486add
Allow sbt to use more than 1G of heap. There was a mistake in sbt build file ( introduced by 012bd5fbc97dc40bb61e0e2b9cc97ed0083f37f6 ) 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 <[email protected]> Closes #103 from rxin/sbt and squashes the following commits: 8829c34 [Reynold Xin] Allow sbt to use more than 1G of heap. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8ad486ad Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8ad486ad Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8ad486ad Branch: refs/heads/master Commit: 8ad486add941c9686dfb39309adaf5b7ca66345d Parents: a99fb37 Author: Reynold Xin <[email protected]> Authored: Fri Mar 7 23:23:59 2014 -0800 Committer: Reynold Xin <[email protected]> Committed: Fri Mar 7 23:23:59 2014 -0800 ---------------------------------------------------------------------- sbt/sbt-launch-lib.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/8ad486ad/sbt/sbt-launch-lib.bash ---------------------------------------------------------------------- diff --git a/sbt/sbt-launch-lib.bash b/sbt/sbt-launch-lib.bash index 00a6b41..64e40a8 100755 --- a/sbt/sbt-launch-lib.bash +++ b/sbt/sbt-launch-lib.bash @@ -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"
