dyrnq / docker-doris

docker-doris
https://github.com/apache/doris
0 stars 0 forks source link

ADD FE_JAVA_OPTS and BE_JAVA_OPTS for override JAVA_OPTS #8

Open dyrnq opened 23 hours ago

dyrnq commented 23 hours ago
root@468b87fe2962:/opt/apache-doris# cat fe/bin/start_fe.sh |grep JAVA_OPTS
# JAVA_OPTS
export JAVA_OPTS="-Xmx1024m"
# check java version and choose correct JAVA_OPTS
final_java_opt="${JAVA_OPTS}"
    if [[ -z "${JAVA_OPTS_FOR_JDK_9}" ]]; then
        echo "JAVA_OPTS_FOR_JDK_9 is not set in fe.conf" >>"${LOG_DIR}/fe.out"
    final_java_opt="${JAVA_OPTS_FOR_JDK_9}"
root@468b87fe2962:/opt/apache-doris# cat be/bin/start_be.sh |grep JAVA_OPTS
# check java version and choose correct JAVA_OPTS
    if [[ -z ${JAVA_OPTS_FOR_JDK_9} ]]; then
        JAVA_OPTS_FOR_JDK_9="-Xmx1024m ${LOG_PATH} -Xlog:gc:${DORIS_HOME}/log/be.gc.log.${CUR_DATE} ${COMMON_OPTS} ${JDBC_OPTS}"
    final_java_opt="${JAVA_OPTS_FOR_JDK_9}"
    if [[ -z ${JAVA_OPTS} ]]; then
        JAVA_OPTS="-Xmx1024m ${LOG_PATH} -Xloggc:${DORIS_HOME}/log/be.gc.log.${CUR_DATE} ${COMMON_OPTS} ${JDBC_OPTS}"
    final_java_opt="${JAVA_OPTS}"
    if [[ -n "${JAVA_OPTS}" ]] && ! echo "${JAVA_OPTS}" | grep "${max_fd_limit/-/\-}" >/dev/null; then
        JAVA_OPTS="${JAVA_OPTS} ${max_fd_limit}"