apache process size

apache process size

am 22.02.2008 10:52:30 von John ORourke

Hi folks,

I'm trying to make my apache processes as small as possible, and one
thing I find lacking in optimisation guides is actual real world process
sizes.

So... how big is yours? ;)

Mine start at around 60MB, jump to 80MB when my app is initialised, and
can peak at 120MB during their lifetime. For reference I tried making
the tiniest possible one with everything stripped out, and that was
still 40MB - is this normal?

cheers
John

Re: apache process size

am 22.02.2008 14:23:21 von roberto

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 22, 2008 at 09:52:30AM +0000, John ORourke wrote:
> Hi folks,
>=20
> I'm trying to make my apache processes as small as possible, and one=20
> thing I find lacking in optimisation guides is actual real world process=
=20
> sizes.
>=20
> So... how big is yours? ;)
>=20
> Mine start at around 60MB, jump to 80MB when my app is initialised, and=
=20
> can peak at 120MB during their lifetime. For reference I tried making=20
> the tiniest possible one with everything stripped out, and that was=20
> still 40MB - is this normal?
>=20
Your question does not contain enough information. What is your basis
the 60MB, 80MB, 120MB, etc, numbers?

Regards,

-Roberto

--=20
Roberto C. S=E1nchez
http://people.connexer.com/~roberto
http://www.connexer.com

--pWyiEgJYm5f9v55/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHvszJ5SXWIKfIlGQRAlc1AKCCYZL5vOFCq1viMt5DS50PuqksaACg wIL7
rgIamn0U37IlylIdFB81TDk=
=SflL
-----END PGP SIGNATURE-----

--pWyiEgJYm5f9v55/--

Re: apache process size

am 22.02.2008 17:09:44 von Clinton Gormley

On Fri, 2008-02-22 at 09:52 +0000, John ORourke wrote:
> Hi folks,
>
> I'm trying to make my apache processes as small as possible, and one
> thing I find lacking in optimisation guides is actual real world process
> sizes.
>
> So... how big is yours? ;)

I'm running on 32-bit linux 2.6, using apache 2.2.4, mod_perl 2.03,
running this site : http://announce.jpress.co.uk

A typical httpd process looks like this (as output by the smem.pl script
at http://www.contrib.andrew.cmu.edu/~bmaurer/memory/smem.pl )

VMSIZE: 136832 kb
RSS: 42236 kb total
25796 kb shared
64 kb private clean
16376 kb private dirty

>
> Mine start at around 60MB, jump to 80MB when my app is initialised, and
> can peak at 120MB during their lifetime. For reference I tried making
> the tiniest possible one with everything stripped out, and that was
> still 40MB - is this normal?

Depends what you're measuring - it sounds like you're including VM in
there as well.

Clint

Re: apache process size

am 22.02.2008 19:48:25 von John ORourke

This is a multi-part message in MIME format.
--------------000804080602040302040203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Roberto C. S=E1nchez wrote:
> On Fri, Feb 22, 2008 at 09:52:30AM +0000, John ORourke wrote:
> =20
>> Mine start at around 60MB, jump to 80MB when my app is initialised, an=
d=20
>> can peak at 120MB during their lifetime. For reference I tried making=
=20
>> the tiniest possible one with everything stripped out, and that was=20
>> still 40MB - is this normal?
>> =20
> Your question does not contain enough information. What is your basis
> the 60MB, 80MB, 120MB, etc, numbers?
> =20
Might be showing off my lack of unix admin knowledge here but using=20
'top', it's the value of the 'virt' column - ie. the biggest possible=20
process size if the whole thing was resident. I've been using it to=20
work out how many clients I should limit apache to, but looking at it=20
the 'res' figure never seems to get anywhere near the 'virt' figure. =20
Time to rewrite my assumptions I think!

John


--------------000804080602040302040203
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit







Roberto C. Sánchez wrote:


On Fri, Feb 22, 2008 at 09:52:30AM +0000, John ORourke wrote:


Mine start at around 60MB, jump to 80MB when my app is initialised, and 
can peak at 120MB during their lifetime. For reference I tried making
the tiniest possible one with everything stripped out, and that was
still 40MB - is this normal?


Your question does not contain enough information.  What is your basis
the 60MB, 80MB, 120MB, etc, numbers?


Might be showing off my lack of unix admin knowledge here but using
'top', it's the value of the 'virt' column - ie. the biggest possible
process size if the whole thing was resident.  I've been using it to
work out how many clients I should limit apache to, but looking at it
the 'res' figure never seems to get anywhere near the 'virt' figure. 
Time to rewrite my assumptions I think!



John






--------------000804080602040302040203--

Re: apache process size

am 23.02.2008 05:12:05 von Colin Wetherbee

John ORourke wrote:
> Might be showing off my lack of unix admin knowledge here but using
> 'top', it's the value of the 'virt' column - ie. the biggest possible
> process size if the whole thing was resident. I've been using it to
> work out how many clients I should limit apache to, but looking at it
> the 'res' figure never seems to get anywhere near the 'virt' figure.
> Time to rewrite my assumptions I think!

I get about 90 MB "virt" (70 MB "res") per process, running some pretty
heavy custom mod_perl templating software with some AJAX stuff that uses
(gasp) Python as a back-end via mod_python, along with DBI (DBD::Pg).

Sometimes, the load average hits 6.0, but everything always seems to
load quickly enough. :)

Linux 2.6.17.13, Debian, 2 x Pentium IV 3.0 GHz.

Colin