mirror of
https://github.com/apache/doris.git
synced 2026-11-04 15:39:47 +00:00
[improvement](script) Add jvm parameters and the process will automatically stop when oom occurs in fe. (#9765)
This commit is contained in:
1 parent
8092439634
commit
4df1106e1e
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
Reference in new issue
Block a user