How to Set Up MySQL Slow Query Logging on a VPS Without Slowing It Down

mysql slow query logging

A slow database rarely announces itself. Pages load a little later, the admin area drags, and CPU usage creeps up. MySQL slow query logging gives you a list of the exact queries behind that slowdown, with timings attached. The catch is that logging itself costs resources, and on a small VPS that cost matters. This … Baca Selengkapnya

How to Fix Slow Nginx Response Times Caused by PHP-FPM

slow nginx response times php-fpm

When a page takes several seconds to load but static files still arrive quickly, PHP is usually where the time goes. Nginx answers a plain image in milliseconds, while a WordPress page or admin screen hangs. That gap points to slow nginx response times php-fpm trouble, not to Nginx itself. Nginx is waiting for PHP-FPM … Baca Selengkapnya

What Is Nginx Worker Connections and How Many Do You Actually Need?

nginx worker connections

Open the Nginx config on almost any VPS and you will find a harmless-looking line: worker_connections 1024;. Most people ignore it until their site starts throwing 500 errors during a traffic spike. Nginx worker connections is the setting that caps how many simultaneous connections a single Nginx worker process can handle. Set it too low … Baca Selengkapnya

How Nginx Handles 10000 Simultaneous Connections (and When It Can’t)

nginx handles 10000 simultaneous connections

How Nginx Handles 10000 Simultaneous Connections (and When It Can’t) Ten thousand open connections sounds like a number only large sites need to worry about, but a small VPS can reach it faster than most owners expect. A busy WordPress site, a chat widget that holds connections open, and a few slow mobile visitors can … Baca Selengkapnya