1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Page loading time

Discussion in 'Black Hat SEO' started by cottonwolf, Jul 9, 2015.

  1. cottonwolf

    cottonwolf Regular Member

    Joined:
    Jan 20, 2015
    Messages:
    469
    Likes Received:
    239
    I'll post this question here, because the programming section is largely ignored.

    I've got 2 digitalocean servers on 512mb ram each. Each server had serverpilot.io agent installed on it, so it manages both servers. The only customisation I've done was fail2ban install and mod, and some ssh hardening. No caching is done on the servers that I know of.

    Serverpilot sets up the webservers with apache 2.4.x and nginx latest. Nginx serves as reverse proxy for apache.

    That's what's happening to me on 2 digitalocean servers is:

    Server A -> piwik on domainone.tld/piwik. No SSL, so that should be done as well.
    Server B -> wordpress on domaintwo.tld. NO SSL, it's an empty amazon aff. wannabe site.

    wordpress gets slowned by a lot because it's loading shit from server a. it's probably because of lack of caching.

    I'll post speed test pictures here in a minute:

    Running speedtests on pingdom, it seems that either their dns is shit or digitalocean name servers take a fucking long time to load.

    That's most of google's speed test feedback: http://pastebin.com/szCAj53W

    Any knowledgeable dev/marketer willing to share some feedback?

    Where should I start caching?

    This is pingdom's result from Server A's piwik javascript:

    Response Headers 200


    Date cut GMTContent-EncodinggzipLast-Modified Date Cut GMTServernginxETagWTF
    VaryAccept-EncodingContent-Typeapplication/javascriptTransfer-EncodingchunkedConnectionkeep-alive
    Request Headers

    Pragmano-cacheAccept-Encodinggzip, deflate, sdchHostdomainone.tld
    Accept-Languageen-US,en;q=0.8User-AgentMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36Accept*/*Refererhttp://domaintwo.tld/
    Connectionkeep-aliveCache-Controlno-cache





    That's the webpagetest.org speedtest from yesterday http://pastebin.com/g5ke6yFM .
    It seems that external dns lookups take a whole lot of damn time.

    Please help a peasant.
     
  2. VerifiedProxies

    VerifiedProxies Newbie

    Joined:
    May 19, 2015
    Messages:
    19
    Likes Received:
    2
    I think you just answered your own question right there.

    Why not combine both of the servers into one so you don't waste time loading from one server to the other?
     
  3. cottonwolf

    cottonwolf Regular Member

    Joined:
    Jan 20, 2015
    Messages:
    469
    Likes Received:
    239
    I'd like to keep them separate so that domainone.tld piwik installation can be used as a web analytics hub for future sites. Having one piwik on each website would be a pain in the rear.

    But yes, that it sounds sensible from your perspective.

    I think yes, I was stupid to ask. I should try to minify, cache and localise these libs an dependancies or whatever these magicians call them.

    I guess I can google round this time and find answers for maself. I just wanted to ask for feedback and ideas.

     
    Last edited: Jul 9, 2015
  4. VerifiedProxies

    VerifiedProxies Newbie

    Joined:
    May 19, 2015
    Messages:
    19
    Likes Received:
    2
    WP is pretty slow in general. It's not the most efficient CMS out there but it gets the job done.

    Another option would be to splurge for a faster VPS with more available CPU cycles.

    Good luck!
     
    • Thanks Thanks x 1
  5. bahus

    bahus Regular Member

    Joined:
    Jun 4, 2014
    Messages:
    353
    Likes Received:
    97
    Gender:
    Male
    You may have not enough ram, I had a website on digitalocean on 512mb ram and switched to 1 GB. Also take look at the plugins you have. Some plugins require a lot resources and will slow your page loading time. I remember when my page loading time was jumping from .5 sec to 2.5-3 when I got rid of Slimstat it stays flat at .3-.4 sec. See pic below.

    sst.jpg

    If you don't want to upgrade you ram, you can create a fallback ram swap file, if all your memory is used the system will use it as back up. It will also prevent from any outages due to excessive resource usage. Last but not least, digitalocean has excellent tech support, contact them and I'm sure they will come up with some tips or point you in the right direction.