Try To Optimizing php-fpm7.3 Configuration with NGINX

vi /etc/php/7.3/fpm/pool.d/www.conf

1. pm.max_children

free -m
ps --no-headers -o "rss,cmd" -C php-fpm7.3 | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"Mb") }'

2. pm.start_servers

3. pm.min_spare_servers

4. pm.max_spare_servers

sudo service php7.3-fpm restart

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Josua Marcel C.

Josua Marcel C.

ask Google

More from Medium

A simple PHP site (4/?)— Routing

Real-Time Private Chat Application using PHP Ratchet Websockets

How to update a mysql column’s data type for an already migrated Table in PHP

Sending transactional emails with a third-party service on Symfony