PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/opt/sharedrads/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/opt/sharedrads/temp_apache_fix |
mem=$(ps -o 'rss' -C httpd|awk '{sum += $1} END {print sum/1024/1024}' |tail -1); memint=${mem%.*} echo "Apache is using $mem G of memory right now"; count=$(apachectl fullstatus | awk '$4 ~ /G/' | awk '{print $14}' | wc -l); echo "Currently have $count gracefully stopping Apache processes"; echo "Looking for FPM pools to restart..."; apachectl fullstatus | awk '$4 ~ /G/' | awk '{print $14}' | sort | uniq -c | sort -nk1 | tail -4 | awk '{print $2}' | awk -F: '{print $1}' | while read dom; do conf=$(grep "^\[.*$dom" -rl /opt/ngxconf); if [ ! -z $conf ]; then master=$(basename -s.conf $conf); echo $master; fi; done | sort | uniq | while read master; do echo "Restarting $master..."; /opt/imh-python/bin/supervisorctl -c /opt/ngxconf/supervisord/supervisord.conf restart $master; done count=$(apachectl fullstatus | awk '$4 ~ /G/' | awk '{print $14}' | wc -l); echo "We now have $count gracefully stopping Apache processes"; echo "Waiting a bit to let Apache reclaim workers..."; sleep 10; mem=$(ps -o 'rss' -C httpd|awk '{sum += $1} END {print sum/1024/1024}' |tail -1); echo "Apache is using $mem G of memory now. If it's significantly less, we should be good!";