Re: Compiling PHP4
| From: | Victor | Date: | Tue, 30 May 2000 15:31:21 +0000 |
| Subject: | Re: Compiling PHP4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-645@lists.php.net to get a copy of this message | ||
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.