Discover Centmin Mod today
Register Now

WebPerf my website loads unsually slow

Discussion in 'Web Development & Web Performance' started by yunos, Aug 3, 2019.

  1. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    php 7.3.8
    nginx 1.17.2

    this is basically a wordpress and takes 7 seconds to load an uncached page and i have no clue whats going on. wp-admin dashboard takes also 7 seconds to load each page
    i installed wordpress normally so never used the menu option.
    site gets 30 visitors daily and barely 120 connections

    im on a dedicated server dual xeon 5520, 24gb ram and ssd and my average load is 0.3 and dont have any sign of bad drive.

    ive disabled all wordpress plugins and it still loads as slow as ever.
    ive opcache and pagespeed enabled.i once Both disabled and site still loads 6-7 seconds.

    nginx.conf
    https://pastebin.com/1pBAVdqv

    fpm conf
    https://pastebin.com/NtHMRJNY

    pingdom website report extremely long waiting time (the result is same even if its server push or not)
    https://i.imgur.com/KQt8Jwp.png
    https://i.imgur.com/cCspUew.png

    fpm slow log does not log anything so im not sure what the issue s

    my.cnf is untouched since i installed centmin few weeks ago.
    really appreciate any help of what issue im having
     
    Last edited: Aug 3, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    simple your page is 18+ megabytes in size ! that is at least 20x times larger than the optimal page size <400-800KB ! if all that page size is actually generated for html etc dynamically then your slow ancient Xeon E5520 is also a contributing factor

    reduce your page sizes to between 400-800KB for locally served content (excluding ads) and retest using webpagetest.org
     
  3. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    its not that simple. as i said, even wp-admin is extremely slow https://i.imgur.com/PO49Cgr.png

    it takes 7 seconds to even go to plugin page
    and it doesnt load those images
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    sounds like problem is your web host/server - try testing on an hourly billed VPS like Upcloud (signees also get US$25 credits to use as well via the affiliate link), Linode, DigitalOcean or Vultr
     
  5. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    not sure if it is. i did create a fresh test wordpress installation and it loads under 2 second despite having 17mb images in first posts. Im really at loss here. I have disabled all plugins in that main website yet it still loads so slow
     
  6. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  7. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    well before i read your post, i fixed the issue somewhat??? but still had no idea what the cause was. the site now loads in wp-admin 1-2 seconds

    and first byte went from 7 seconds to 400ms for uncached pages in wp-admin
    i just created a new fresh db and db username and exported my posts/menus from my main to my new site and all data has been successfully migrated with wordpress export/import features

    so when did the whole sloweness started?
    when i did mysqldump and mysql restored to a new database and user and did cp website files from original to new path and then did chown -R with nginx group
     
  8. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    if on vps server then you share with vps neighbours your resources so depending on how web host configures vps host node, it could be overcrowed too so issues could be related to vps neighbours at a specific point in time

    post output for command wrapped in CODE bbcode tags
    Code (Text):
    cminfo top
     
  9. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    well im on a dedicated server where most of my friends are hosting discord bots which mostly consumes ram rather than cpu, and im the only one hosting an actual website though
    but heres the attached logs
    https://pastebin.com/E6XDJPQW
     
  10. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    those brief stats look good to me so you'd have to figure out why it's slow for you though 18 megabyte size pages won't help with page load speeds especially if that data has to be pulled from mysql then passed onto php-fpm then to nginx.
     
  11. yunos

    yunos Member

    67
    3
    8
    Aug 8, 2015
    Ratings:
    +9
    Local Time:
    3:41 AM
    1.8.0
    large images slows down website, that is given. But my prior issue was the fact that verything was loading slowely, even in wp-admin control panel. Just trying to navigate through takes 7 seconds per page load

    although i have no idea the cause of the whole slowdown, but i will use your recommended plugin should the global slowness happend again. for now, installing a brand new wordpress and iimporting posts fixed this issue as my site loads fast again now.
     
  12. EckyBrazzz

    EckyBrazzz Active Member

    767
    153
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +280
    Local Time:
    11:41 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
    • Informative Informative x 1
  13. eva2000

    eva2000 Administrator Staff Member

    42,268
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    12:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x