This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new ce8922d  [SPARK-35358][BUILD] Increase maximum Java heap used for 
release build to avoid OOM
ce8922d is described below

commit ce8922d46795c219f01fd85a33d2191b3c5014df
Author: Liang-Chi Hsieh <vii...@gmail.com>
AuthorDate: Mon May 10 00:29:05 2021 -0700

    [SPARK-35358][BUILD] Increase maximum Java heap used for release build to 
avoid OOM
    
    ### What changes were proposed in this pull request?
    
    This patch proposes to increase the maximum heap memory setting for release 
build.
    
    ### Why are the changes needed?
    
    When I was cutting RCs for 2.4.8, I frequently encountered OOM during 
building using mvn. It happens many times until I increased the heap memory 
setting.
    
    I am not sure if other release managers encounter the same issue. So I 
propose to increase the heap memory setting and see if it looks good for others.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev only.
    
    ### How was this patch tested?
    
    Manually used it during cutting RCs of 2.4.8.
    
    Closes #32487 from viirya/release-mvn-oom.
    
    Authored-by: Liang-Chi Hsieh <vii...@gmail.com>
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
    (cherry picked from commit 20d32242a2574637d18771c2f7de5c9878f85bad)
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
    (cherry picked from commit 9623ccb60e292858f5d9ca614a9c31a98dbcdb22)
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
---
 dev/create-release/release-build.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev/create-release/release-build.sh 
b/dev/create-release/release-build.sh
index ac8b1a8..737c5a6 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -167,6 +167,8 @@ git clean -d -f -x
 rm -f .gitignore
 cd ..
 
+export MAVEN_OPTS="-Xmx12g"
+
 if [[ "$1" == "package" ]]; then
   # Source and binary tarballs
   echo "Packaging release source tarballs"

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to