You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/05/19 05:49:16 UTC

[GitHub] [incubator-doris] morrySnow commented on a diff in pull request #9683: [fix]Set the memory size used when FE starts according to the user's available memory at startup

morrySnow commented on code in PR #9683:
URL: https://github.com/apache/incubator-doris/pull/9683#discussion_r876625332


##########
bin/start_fe.sh:
##########
@@ -132,13 +132,21 @@ fi
 
 # check java version and choose correct JAVA_OPTS
 java_version=$(jdk_version)
-final_java_opt=$JAVA_OPTS
+final_java_opt=$JAVA_OPTS_4G
+MemTotal=`free -g | grep "Mem"  | awk '{print $7}'`

Review Comment:
   free is not available on all  Linux Distribution. we'd better to do `which free` before use it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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