Root Access Daily
Root Access Daily
@RootAccessDaily

Diagnose a slow site without guessing

Diagnose a slow site without guessing
Site feels sluggish, everyone blames the host. Walk the layers top-down:
— Where's the time going? curl -w '@curl-format.txt' -o /dev/null -s https://yoursite with a format file printing connect / starttransfer
— High starttransfer = backend. Tail the slowlog: enable php-fpm slowlog + request_slowlog_timeout = 2s
— Still slow? It's the DB. Turn on MySQL slow_query_log with long_query_time = 1
— Run EXPLAIN on the worst query — 90% of the time it's a missing index
Measure each hop, never blame the box first. Try it tonight.
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.