Wordpress Page loading time

cottonwolf

Regular Member
Joined
Jan 20, 2015
Messages
469
Reaction score
242
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.
 
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?
 
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.

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?
 
Last edited:
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!
 
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.
 
Back
Top