Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] {OT} RAM & apache MaxClients (rock & a hard place)
Date: Sat, 09 Mar 2013 19:51:50
Message-Id: CAN0CFw3CpwQr0DTZGYDAcQ=LCh4EF_oPT02DsvAyC=w=vJVdPA@mail.gmail.com
In Reply to: Re: [gentoo-user] {OT} RAM & apache MaxClients (rock & a hard place) by Kevin Chadwick
1 >> I can probably dump a lot of apache config. I still need SSL on both
2 >> servers even though only nginx faces the user?
3 >
4 > Perhaps you need Apache for certain pages otherwise this is simply a
5 > quick fix which is fair enough, we always like those at times but it
6 > sounds to me like you could have gained more by simply switching Apache
7 > for nginx or tuning your max.
8
9 My apache processes run pretty heavy so raising MaxClients opens the
10 potential for an OOM condition. I would love to completely switch to
11 nginx from apache but I need apache for certain stuff. That is
12 something I will look into in the future though.
13
14 > Running both is actually wasting a little memory though you may have
15 > gained over just Apache.
16
17 I can say that before nginx, top was filled with relatively
18 memory-laden apache processes and now there is only a short list.
19
20 > How web proxies with optional caches usually work such as OpenBSDs
21 > relayd is to keep track of requests perhaps using higher layer info and
22 > share the load among multiple web servers, perhaps adding headers to
23 > keep everything functional.
24
25 nginx seems much faster than apache which I think is a good reason to
26 switch over as much stuff as possible.
27
28 - Grant