Welcome! Log In Create A New Profile

Advanced

Re: reverse proxy vs. stand-alone

May 15, 2009 03:48AM
On Fri, 2009-05-15 at 09:19 +0400, Igor Sysoev wrote:
> On Thu, May 14, 2009 at 05:36:15PM -0700, Cliff Wells wrote:
>
> > On Thu, 2009-05-14 at 20:24 -0400, jemari wrote:
> > > Hi everyone,
> > >
> > > I am setting up a small VPS. My plan is to have nginx as a reverse
> > > proxy to apache2 (running with mod-php). All other static files will
> > > be served by nginx.
> > >
> > > Does anyone know if there would be a significant difference in
> > > performance and/or stability if I removed apache, and have nginx use
> > > fcgi for php?
> >
> > Yes, you'd save hundreds of megabytes of RAM by not using Apache, which
> > will undoubtedly affect performance in a positive fashion.
>
> Would not these megabytes go to php/FastCGI ?

Not really. PHP under FastCGI seems to use a lot less resources than
mod_php. I assume this is because the number of threads is a constant
with PHP under FCGI.

I converted a Joomla site from Apache/mod_php to Nginx/FastCGI and went
from constantly consuming the full 256MB (and crashing the VPS) to using
only around 20MB of RAM.

Regards,
Cliff
Subject Author Posted

reverse proxy vs. stand-alone

jemari May 14, 2009 08:24PM

Re: reverse proxy vs. stand-alone

Cliff Wells May 14, 2009 08:36PM

Re: reverse proxy vs. stand-alone

Igor Sysoev May 15, 2009 01:19AM

Re: reverse proxy vs. stand-alone

Cliff Wells May 15, 2009 03:48AM

Re: reverse proxy vs. stand-alone

Igor Sysoev May 15, 2009 10:55AM

Re: reverse proxy vs. stand-alone

Cliff Wells May 15, 2009 12:20PM

RE: reverse proxy vs. stand-alone

AMP Admin May 15, 2009 02:09PM

RE: reverse proxy vs. stand-alone

Cliff Wells May 15, 2009 02:38PM

Re: reverse proxy vs. stand-alone

Igor Sysoev May 15, 2009 02:46PM

Re: reverse proxy vs. stand-alone

Claude Bing May 15, 2009 02:45PM

RE: reverse proxy vs. stand-alone

AMP Admin May 15, 2009 03:09PM

RE: reverse proxy vs. stand-alone

Cliff Wells May 16, 2009 11:48PM

Re: reverse proxy vs. stand-alone

jemari May 16, 2009 06:59PM

Re: reverse proxy vs. stand-alone

Cliff Wells May 16, 2009 11:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready