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/maint/bin/ |
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/maint/bin/opcache_check.sh |
# This script is intended to be ran via CRON. # It was written to catch opcache deadlocks where opcache cannot # kill a process owned by another user within the same FPM master. # Read more: https://github.com/php/php-src/issues/8072 # Count all locks with ZendSem in the name and only return ones that are over 20. lslocks | awk '/ZendSem/ {print $9}' | sort | uniq -c | awk '$1 > 20' | while read -r bad_lock; do bad_lock_count=$(echo "${bad_lock}" | awk '{print $1}'); bad_lock_name=$(echo "${bad_lock}" | awk '{print $2}'); lslocks | grep "${bad_lock_name}" | grep READ | awk '/^php-fpm/ {print $2}' | while read -r bad_lock_pid; do # If the string isn't empty, proceed with the kill. if [[ -n "${bad_lock_pid}" ]]; then echo "opcache deadlock discovered: ${bad_lock_count} active locks for ${bad_lock_name} - sending kill: ${bad_lock_pid}" | systemd-cat -p info; kill -9 "${bad_lock_pid}" fi done; unset bad_lock_pid; done