Re: How much memory does PHP take?
| From: | jeremy brand | Date: | Thu, 04 Jan 2001 03:49:32 +0000 |
| Subject: | Re: How much memory does PHP take? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32603@lists.php.net to get a copy of this message | ||
Here is a sample from top on my machine. I have it statically linked
-- no mod_php.
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
9920 nobody 0 0 3676 3000 1756 S 0 0.0 2.3 7:35 httpd
13087 nobody 0 0 3560 2896 1768 S 0 0.0 2.2 4:56 httpd
14767 nobody 0 0 3396 2768 1772 S 0 0.0 2.1 1:47 httpd
29331 nobody 0 0 3456 2864 1956 S 0 0.0 2.2 1:23 httpd
6207 nobody 0 0 3860 3364 2240 S 0 0.0 2.6 0:04 httpd
This is my PHP configure line:
./configure --with-gd --with-xml --enable-calendar --with-mysql \
--with-config-file-path=/my/path --enable-debug=no \
--with-apache=/my/apache/src --with-mcrypt --enable-gz --with-zlib \
--enable-bcmath
Not to mention, my apache is compiled with mod_ssl as well. I'm glad
you asked, it has been a while since I checked how big my binary was
getting.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com
On Wed, 3 Jan 2001, Philip Mak wrote:
> Date: Wed, 3 Jan 2001 22:25:39 -0500 (EST)
> From: Philip Mak <pmak@aaanime.net>
> To: php-general@lists.php.net
> Subject: [PHP] How much memory does PHP take?
>
> Right now, my machine has a modperl (Apache::ASP) based site that serves
> up 1.7 million hits per month.
>
> Each Apache child process takes 5+ MB of memory because of the modperl
> support. At peek times, the memory on the system (192 MB) gets
> exhausted; I've used MaxClients to control it, but then the web server
> responds slowly.
>
> If I switched to PHP, how much memory would each Apache child process
> take?
>
> -Philip Mak (pmak@aaanime.net)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>