Re: Compiling PHP4
| From: | Victor | Date: | Tue, 30 May 2000 15:32:37 +0000 |
| Subject: | Re: Compiling PHP4 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-646@lists.php.net to get a copy of this message | ||
I meant to say 200 in busy time, not a 100. Sorry :(
Victor wrote:
> Yes, that's true, but executable has to be loaded into memory to run. On top of
> that, apache runs multiple instances, so if you have 1.6 megs executable, you have
> a good portion of that loaded up in each thread, you have about 10 thread in idle
> time, and lets say 100 threads in a very busy time. So 200 x 1 meg = 200 megs, now
> it becomes a little more obvious why you would want to keep your size to a
> minimum. I don't know if 200 people all at once will ever come all at once, but
> still.
>
> Apache (just clean, with default modules) is around 500K
> Apache + PHP + JServ = 1.7 megs
> Apache + PHP + JServ + Apache_SSL = 2.5 megs
>
> Well, at least those are the numbers I got. If anyone managed to get smaller
> executables, drop me a line.
>
> Thanks a lot for your help. I will try the switches and see how it goes.
> Victor
>
> Rasmus Lerdorf wrote:
>
> > But executable size is irrelevant. What is relevant is runtime memory
> > usage. I can create a 100 byte executable that eats up 100 megs of memory
> > at runtime. Or I can create a 10 Meg executable that only consumes 10
> > bytes of memory at runtime.
>
> --
> 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