Home > Programming, Servers & Scripts > Hosting, Servers & Security

What a frustrating day with my server! (13)


10-14-2012 06:23 PM #1 andyscraven (Member)
What a frustrating day with my server!

Instead of having a productive day with offers I have just spent 5 hours sorting out a very very slow server.

Turned out that a couple of the sites on my server (it is a VPS) were going over the process limit, which was slowing all my sites to a crawl.

So, I installed a good caching plugin on the troubled sites and even started using the Amazon Cloudstore CDN service.

This really made a difference to the sites as now Amazon is serving the bulk of the content form a damn fast server!

I finally increased my memory limit on the server and all now seems well.

it is now 19:21 in the UK and I am ready for food!

Bring on tomorrow!


10-14-2012 08:34 PM #2 thedudeabides (Moderator)

I take it by plugin you're referring to a wordpress site? They can be resource hogs for sure.


10-14-2012 08:49 PM #3 andyscraven (Member)

@thedudeabides It seems that a plugin called Popup Domination was one of the culprits. It is a shame as it is a really good plugin.

The main problem site is now loading really fast due to using the Amazon CDN to serve up the bulk of the images etc.


10-14-2012 08:50 PM #4 snipe (Member)

Install phpSysInfo and check it every now and again to make sure you're on top of things.
I reckon if you have all the caching in place you'll be able to downgrade your memory.

Edit: Just saw you posted again, you should be able to get a static popup dom installed fairly easily that won't hog any resources. It's just an extra bit of html/js that can be cached.


10-14-2012 09:15 PM #5 andyscraven (Member)

@snipe Thanks for that. Do I just upload it to my server?

Do you know of any light weight Pop Up Plugins?


10-14-2012 09:31 PM #6 andyscraven (Member)

I have to say that the W3 Total Cache wordpress Plugin has reduced the load time of the heaviest website by more than it promised. It used to load in about 11 seconds. Now it loads in less that half a second! Amazing!


10-14-2012 10:34 PM #7 hd2010 (Member)

move your wordpress sites to elsewhere, leave room for your cpa marketing stuff, if your sites keep hogging the resources


10-15-2012 01:21 AM #8 zeno (Administrator)

Quote Originally Posted by hd2010 View Post
move your wordpress sites to elsewhere, leave room for your cpa marketing stuff, if your sites keep hogging the resources
Agreed. If your sites are doing enough traffic to stress your server (ignoring whether some optimisation can alleviate that) then maybe you should move them off the server you're using for tracking/redirects.


10-15-2012 04:02 AM #9 hd2010 (Member)

You might want to switch to litespeed or nginx rather than using apache, apache known for hogging resources especially under high load, might want to implement reverse proxy such as varnish cache at your web server frontend. Hire an experience linux system admin at odesk to help you this or engage someone from server management company, check out webhostingtalk.com, there are talented people in that forum. Turn on the sql query cache in MYSQL, also will reduce your MYSQL load.


10-15-2012 04:12 AM #10 qhead (Member)

Oh god, Wordpress. I just spent countless hours trying to optimize a Wordpress installation for a project few months back. It's pretty unbelievable that a "simple" CMS doesn't run properly with 1GB VPS without some serious optimizing. This is a common problem with newer Wordpress versions.

I ended up with Nginx, PHP5-FPM with XCache and MariaDB. And W3 Cache or what's that called and on top of that, Cloudflare.

By the way, you are ok if you are running just a static blog BUT if you run membership area or anything where people register, then you are fucked because W3 and other cache plugins are not smart enough to cache for logged in users.

Don't even think about Apache if you are running MySQL in the same server. Both eat a lot of memory and you really want your database to have the memory instead of your web server.


10-15-2012 09:20 AM #11 andyscraven (Member)

Hi

Thanks for all the comments.

The W3 Total Cache does have the ability to use Varnish Cache and XCache, which is implemented on the server.

I use Dreamhost as I like their support.

Funny that you mention a separate server for my CPA and Tracking as that is what I fell asleep deciding last night. I do not want conversions hit by people bouncing due to slow loading landing pages.

@qhead - I think the latest version of W3 Total Cache can differentiate between logged in users now but you make a good point as I am developing a membership site for people trying to lose weight. I had to lose weight prior to spinal surgery 7 weeks ago. I lost 24lb on the Dukan diet and kept a daily video log and a detailed log of what I ate, how I cheated and still lost weight. I bought Sonic Member as I really like their multiple dashboard feature, which I can use for different membership levels.

Ah well, the learning continues! Thanks everyone!


12-07-2012 10:20 PM #12 BeyondHosting-Tyler (Member)

Quote Originally Posted by qhead View Post
Oh god, Wordpress. I just spent countless hours trying to optimize a Wordpress installation for a project few months back. It's pretty unbelievable that a "simple" CMS doesn't run properly with 1GB VPS without some serious optimizing. This is a common problem with newer Wordpress versions.

I ended up with Nginx, PHP5-FPM with XCache and MariaDB. And W3 Cache or what's that called and on top of that, Cloudflare.
Lets optimize a pig to run like a cheetah then throw a elephant in on top of it... awesome

W3 Total Cache using the disk caching plugin is about all you need. We've tested all the wordpress caching plugins and their function.. its pretty close for all the caching methods and disk cache requires the least overhead.

Then again we are testing this on our servers which are about 7000% faster than any competitor for io operations... It may be a bias result.


12-07-2012 11:20 PM #13 caurmen (Administrator)

+1 for moving away from Apache. These days it's just eclipsed in almost every way possible by Nginx.

Also, if you have the memory for it, Varnish is the dog's bollocks. Not easy to set up, but an OMFG performance increase.

@qhead - MariaDB? How much of a hassle was that to set up vs performance increase? I've been meaning to test it.

(Note - if you're running a project with any kind of serious profit upside, I'd recommend just running it on a dedicated Wordpress host. That's what I did - saved me huge amounts of hassle and sped the site up in the bargain.)


Home > Programming, Servers & Scripts > Hosting, Servers & Security