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

zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new 7c87203  [ZEPPELIN-5232]. Default value of zeppelin server memory & 
interpreter memory should be 1024m
7c87203 is described below

commit 7c872033c6ccc2037cdc47aa7be4ba4c7b13c321
Author: Jeff Zhang <[email protected]>
AuthorDate: Wed Feb 3 14:50:29 2021 +0800

    [ZEPPELIN-5232]. Default value of zeppelin server memory & interpreter 
memory should be 1024m
    
    ### What is this PR for?
    
    Trivial PR to change the default memory size to be 1024m for both zeppelin 
server & interpreter. And also remove `-Xms`, because for some interpreters, 
memory usage is very small, so just remove `-Xms` to save memory.
    
    ### What type of PR is it?
    [ Improvement ]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5232
    
    ### How should this be tested?
    * No test
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Jeff Zhang <[email protected]>
    
    Closes #4042 from zjffdu/ZEPPELIN-5232 and squashes the following commits:
    
    35fc807c7 [Jeff Zhang] [ZEPPELIN-5232]. Default value of zeppelin server 
memory & interpreter memory should be 1024m
    
    (cherry picked from commit 73b8812623c332f3cf34b8936aa3332ed04138c9)
    Signed-off-by: Jeff Zhang <[email protected]>
---
 bin/common.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/common.sh b/bin/common.sh
index da93eb3..fb533d9 100644
--- a/bin/common.sh
+++ b/bin/common.sh
@@ -138,11 +138,11 @@ if [[ -z "${ZEPPELIN_ENCODING}" ]]; then
 fi
 
 if [[ -z "${ZEPPELIN_MEM}" ]]; then
-  export ZEPPELIN_MEM="-Xms1024m -Xmx1024m"
+  export ZEPPELIN_MEM="-Xmx1024m"
 fi
 
 if [[ ( -z "${ZEPPELIN_INTP_MEM}" ) && ( "${ZEPPELIN_INTERPRETER_LAUNCHER}" != 
"yarn" ) ]]; then
-  export ZEPPELIN_INTP_MEM="-Xms1024m -Xmx2048m"
+  export ZEPPELIN_INTP_MEM="-Xmx1024m"
 fi
 
 JAVA_OPTS+=" ${ZEPPELIN_JAVA_OPTS} -Dfile.encoding=${ZEPPELIN_ENCODING} 
${ZEPPELIN_MEM}"

Reply via email to