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

yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 316efc2618 [#6384] fix: Gravitino default JVM config mismatches with 
comments from gravitino-env.sh (#6385)
316efc2618 is described below

commit 316efc26184dba7d8b2ad6f8818c820747277a24
Author: Pucheng Yang <8072956+puche...@users.noreply.github.com>
AuthorDate: Tue Feb 4 03:28:22 2025 -0800

    [#6384] fix: Gravitino default JVM config mismatches with comments from 
gravitino-env.sh (#6385)
    
    <!--
    1. Title: [#<issue>] <type>(<scope>): <subject>
       Examples:
         - "[#123] feat(operator): support xxx"
         - "[#233] fix: check null before access result in xxx"
         - "[MINOR] refactor: fix typo in variable name"
         - "[MINOR] docs: fix typo in README"
         - "[#255] test: fix flaky test NameOfTheTest"
       Reference: https://www.conventionalcommits.org/en/v1.0.0/
    2. If the PR is unfinished, please mark this PR as draft.
    -->
    
    ### What changes were proposed in this pull request?
    
    Update Gravitino JVM memory default.
    
    ### Why are the changes needed?
    
    Fix: https://github.com/apache/gravitino/issues/6384
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    No test
---
 bin/common.sh.template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/common.sh.template b/bin/common.sh.template
index b81710a3fc..a5de3bd38c 100644
--- a/bin/common.sh.template
+++ b/bin/common.sh.template
@@ -106,7 +106,7 @@ function addDirToClasspath(){
 }
 
 if [[ -z "${GRAVITINO_MEM}" ]]; then
-  export GRAVITINO_MEM="-Xmx1024m"
+  export GRAVITINO_MEM="-Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m"
 fi
 
 if [[ -n "${JAVA_HOME}" ]]; then

Reply via email to