You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/05/30 01:44:18 UTC

[incubator-doris] branch master updated: [improvement](script) Add jvm parameters and the process will automatically stop when oom occurs in fe. (#9765)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 4df1106e1e [improvement](script) Add jvm parameters and the process will automatically stop when oom occurs in fe. (#9765)
4df1106e1e is described below

commit 4df1106e1e73880fedbfbf2279dcfc7daccbc4ef
Author: smallhibiscus <84...@qq.com>
AuthorDate: Mon May 30 09:44:12 2022 +0800

    [improvement](script) Add jvm parameters and the process will automatically stop when oom occurs in fe. (#9765)
---
 bin/start_fe.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/start_fe.sh b/bin/start_fe.sh
index 2efacb071b..684e8630b0 100755
--- a/bin/start_fe.sh
+++ b/bin/start_fe.sh
@@ -178,10 +178,10 @@ if [[ ${IMAGE_TOOL} -eq 1 ]]; then
         echo "Internal Error. USE IMAGE_TOOL like : ./start_fe.sh --image image_path"
     fi
 elif [[ ${RUN_DAEMON} -eq 1 ]]; then
-    nohup $LIMIT $JAVA $final_java_opt org.apache.doris.PaloFe ${HELPER} "$@" >> $LOG_DIR/fe.out 2>&1 < /dev/null &
+    nohup $LIMIT $JAVA $final_java_opt -XX:OnOutOfMemoryError="kill -9 %p" org.apache.doris.PaloFe ${HELPER} "$@" >> $LOG_DIR/fe.out 2>&1 < /dev/null &
 else
     export DORIS_LOG_TO_STDERR=1
-    $LIMIT $JAVA $final_java_opt org.apache.doris.PaloFe ${HELPER} "$@" < /dev/null
+    $LIMIT $JAVA $final_java_opt -XX:OnOutOfMemoryError="kill -9 %p" org.apache.doris.PaloFe ${HELPER} "$@" < /dev/null
 fi
 
 echo $! > $pidfile


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org