This is an automated email from the ASF dual-hosted git repository. srowen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 9d2a115 [MINOR][DOC] Documentation on JVM options for SBT 9d2a115 is described below commit 9d2a11554b0b2ac27bd506e6941ef8d339756db2 Author: Darcy Shen <sad...@zoho.com> AuthorDate: Tue Jan 22 18:27:24 2019 -0600 [MINOR][DOC] Documentation on JVM options for SBT ## What changes were proposed in this pull request? Documentation and .gitignore ## How was this patch tested? Manual test that SBT honors the settings in .jvmopts if present Closes #23615 from sadhen/impr/gitignore. Authored-by: Darcy Shen <sad...@zoho.com> Signed-off-by: Sean Owen <sean.o...@databricks.com> --- .gitignore | 3 +++ docs/building-spark.md | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index e4c44d0..d5cf66d 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,6 @@ spark-warehouse/ *.Rproj.* .Rproj.user + +# For SBT +.jvmopts diff --git a/docs/building-spark.md b/docs/building-spark.md index 55695f3..b16083f 100644 --- a/docs/building-spark.md +++ b/docs/building-spark.md @@ -138,6 +138,14 @@ To avoid the overhead of launching sbt each time you need to re-compile, you can in interactive mode by running `build/sbt`, and then run all build commands at the command prompt. +### Setting up SBT's Memory Usage +Configure the JVM options for SBT in `.jvmopts` at the project root, for example: + + -Xmx2g + -XX:ReservedCodeCacheSize=512m + +For the meanings of these two options, please carefully read the [Setting up Maven's Memory Usage section](http://spark.apache.org/docs/latest/building-spark.html#setting-up-mavens-memory-usage). + ## Speeding up Compilation Developers who compile Spark frequently may want to speed up compilation; e.g., by using Zinc --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org