[Xitami] Memory allocation

Magnus Wedberg mw at 9000.org
Sat Oct 13 01:09:22 CEST 2007


Paul Reid wrote, On 2007-10-13 00:25:

> Apache has a way to keep PHP running all the time so you don't suffer a 
> PHP interpreter load on every hit.

So does IIS, and Netscape-compatible servers.

>  But that only helps if you have a LOT
> of hits on scripts so easy that interpreter load-time exceeds script 
> runtime.

Or if you have slow hardware. On my old server, a Pentium 200MMX with 
96MB RAM, the time it took to start the command interpreter + php.exe 
was clearly noticeable for every php page load. That meant that a very 
fast piece of software (Xitami) turned very slow. Although Apache was 
way slower for static content, and ate more resources, it still beat 
Xitami with a significant margin on PHP just because it didn't have to 
create new processes all the time.

On fast hardware this won't be as noticeable, but it's still a factor, 
and might be a problem under heavy loads as lots of processor time will 
be spent on creating and closing processes.

-- 
Magnus Wedberg
http://www.magnuswedberg.com/
mw AT 9000.org
Warning! Objects in viewfinder may be closer than they appear.



More information about the Xitami mailing list