a little bit more mem for small builds

keyword-vs-text-changes
neu5ron 2019-05-20 17:41:44 -04:00
parent a9fc554625
commit 97c9c23c5b
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@ if [[ -z "$ES_JAVA_OPTS" ]]; then
# Check using more accurate MB
AVAILABLE_MEMORY=$(awk '/MemAvailable/{printf "%.f", $2/1024}' /proc/meminfo)
if [ $AVAILABLE_MEMORY -ge 1000 -a $AVAILABLE_MEMORY -le 7999 ]; then
ES_MEMORY="1200m"
ES_MEMORY="1400m"
elif [ $AVAILABLE_MEMORY -ge 8000 -a $AVAILABLE_MEMORY -le 12999 ]; then
ES_MEMORY="2g"
ES_MEMORY="2750m"
elif [ $AVAILABLE_MEMORY -ge 13000 -a $AVAILABLE_MEMORY -le 16000 ]; then
ES_MEMORY="4g"
else