Current time: 03-08-2021, 08:35 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Long Loads & Erratic TTFB
07-23-2017, 11:14 PM
Post: #8
RE: Long Loads & Erratic TTFB
Number of resource to load effects total load time.

TTFB relates primarily to your hosting, so LAMP (Linux/Apache/MariaDB/PHP) tuning.

You're running WordPress, so you can try this.

1) Install Query Monitor plugin

2) Set SAVEQUERIES to true in your wp-config.php

Look for huge numbers of broken HTTP requests or database thrash.

Recently I found an odd glitch between how WordPress calls it's own API on which related to DNS... where... some DNS lookups simply failed, after a 5 second timeout.

After narrowing this down to DNS, I've changed all my LXD containers to...

a) Remove the massively broken systemd-resolved nonsense.

b) Change /etc/resolv.conf to "nameserver"

c) Run - resolvconf --disable-updates - each time containers reboots, so /etc/resolv.conf never changes.

d) Arrange for dnsmasq (blazing fast DNS resolution) to listen on 127.0.0.[1|53] to handle all DNS.

This has resolved many complaints I was having from clients about slow sites, especially when logged into the admin dashboard.

Query Monitor can surface many problem areas.

Also make sure Opcache is enabled + tuned well. shows what you're looking for. Lots of free memory slabs + keys.

Also run mysqltuner on a regular basis + fix any emitted diagnostics.

Few weeks ago, I went through a tuning cycle with latest mysqltuner + latest MariaDB on a high traffic site + got nearly 60% disk i/o reduction by fixing every single mysqltuner suggestion.

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Long Loads & Erratic TTFB - Islandspark - 07-18-2017, 06:30 AM
RE: Long Loads & Erratic TTFB - GreenGecko - 07-19-2017, 04:18 PM
RE: Long Loads & Erratic TTFB - dfavor - 07-20-2017, 10:08 PM
RE: Long Loads & Erratic TTFB - avalanch - 07-22-2017, 08:53 AM
RE: Long Loads & Erratic TTFB - dfavor - 07-23-2017 11:14 PM
RE: Long Loads & Erratic TTFB - GreenGecko - 07-26-2017, 08:09 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)