[wp-hackers] APC-Nginx-Apache problems / memory problems on VPS

Dan Smart dan at dansmart.co.uk
Sat Aug 27 08:20:57 UTC 2011


We recently had problems on a dedicated server running CPanel, with half a gig of RAM. It was going down regularly with memory full issues, even though it only had one WordPress multisite install with about 10 sites, nothing major at that point.

Turns out that the recent updates to CPanel mean that it needs 1 gig of RAM to run and not cause the server to fall over, so you might want to follow up this CPanel lead.

Best...Dan

(Sent from iPhone)
Dan Smart - Web Developer
www.dansmart.co.uk

On 27 Aug 2011, at 07:38, Andrew Spratley <aspratley at gmail.com> wrote:

> Excuse me if some of this is redundant, without seeing your exact set
> up it's difficult to diagnose what's at fault.
> 
> Firstly, when you say you can't keep the site up do you mean? You
> can't get the stack configured in the first place? Or does it fail
> quickly. If it's failing, how much free memory do you have? What do
> your system, apache, nginx logs say?
> 
> You mention cpanel, are you using a VPS with cpanel installed? If
> you're going to the extent of reconfiguring apache and installing
> nginx do you need cpanel? It's been a while since I've used it but it
> brings a lot of services you might not need. Plus the auto updates can
> kill your customisations.
> 
> Why are you proxying to apache? You need an apache mod? If you don't
> need that mod for your wordpress site why not run apache on it's own
> port/ip and have your wordpress install served directly through nginx?
> It'll simplify the set up and there're lots of guides out there for a
> straight nginx/wordpress setup.
> 
> Andy
> 
> On Sat, Aug 27, 2011 at 6:55 AM, William P. Davis <will.davis at gmail.com> wrote:
>> Ian,
>> The place I would definitely start is finding where the bottlenecks are in your code so you can see where you need to improve performance.
>> 
>> What's the theme you're running? (It doesn't matter if it's from a reputable company, it might still not scale.) How many and what plugins are you running? How many users do you have? How many posts do you have? How many pages do you have?
>> 
>> Your best hosting solution depends enormously on all these things and more. Run SHOW FULL PROCESSLIST; on your mysql db to see if there are queries that are hanging up.
>> 
>> My point here is that the hosting you outlined sounds more than adequate, so you probably just need to tweak things.
>> Sent from my BlackBerry® wireless device
>> 
>> -----Original Message-----
>> From: Ian Douglas <ian at powerfoundation.org>
>> Sender: wp-hackers-bounces at lists.automattic.com
>> Date: Sat, 27 Aug 2011 01:40:03
>> To: <wp-hackers at lists.automattic.com>
>> Reply-To: wp-hackers at lists.automattic.com
>> Subject: Re: [wp-hackers] APC-Nginx-Apache problems / memory problems on VPS
>> 
>> Thanks Daniel, and Braydon.
>> 
>> I spent quite a lot of time investigating the best solution for my particular needs, and I'm are convinced that the Apache+Nginx combination is the best for these needs. I also spent some time to get everything installed and working. All I need at this point is a hint as to where the glitch might be.
>> 
>> best,
>> ian
>> 
>> 
>> On 27 Aug 2011, at 01:25, Braydon wrote:
>> 
>>> I don't understand why you need to use Nginx and Apache together unless you're using multiple servers and need a load balancer.....
>>> 
>>> On 08/26/2011 04:22 PM, Daniel Fenn wrote:
>>>> Hello,
>>>> 
>>>> I never used Apache+Nginx together, but you may want to take a look at
>>>> litespeed, it faster than having apache and mod_php working.
>>>> 
>>>> Hope this helps.
>>>> 
>>>> Thanks
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list