diff --git a/scripts/start-configuration b/scripts/start-configuration index bd630556..62e0b1b0 100755 --- a/scripts/start-configuration +++ b/scripts/start-configuration @@ -47,6 +47,12 @@ if [ ! -e /data/eula.txt ]; then writeEula fi +if isTrue "${DEBUG_MEMORY:-false}"; then + log "Memory usage and availability (in MB)" + uname -a + free -m +fi + ########################################## # Setup RCON password diff --git a/scripts/start-finalExec b/scripts/start-finalExec index 7445dbc0..6d5e640b 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -192,12 +192,6 @@ if isTrue "${USE_SIMD_FLAGS}"; then " fi -if isTrue "${DEBUG_MEMORY}"; then - log "Memory usage and availability (in MB)" - uname -a - free -m -fi - if [[ ${INIT_MEMORY} || ${MAX_MEMORY} ]]; then log "Setting initial memory to ${INIT_MEMORY:=${MEMORY}} and max to ${MAX_MEMORY:=${MEMORY}}" if [[ ${INIT_MEMORY} ]]; then