Re: Which Web Server Do You Use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Zerof,

Apache 1.3 was fine on windows until we hit is very very hard indeed. Under these conditions it tended to run out of resources and stop responding with a long recovery time.

Apache 2 has a very different problem. It does use kernel based accepts etc, so it seems to handle load very much better. However, mod_php on apache2 does not seem to guarantee that the same thread well continue to process the same request. Or at least there is an issue around stack/heap data.

I managed to show this for definite by using windows system calls to track the current working thread. During one php request, more than one thread was active, in sequence. The net result of this on COM was that static data members got out of line with dynamic ones :-(

I also looked into mod_fcgi to try and overcome the threading problem, but I found that its methods for managing crashed php processes, resource allocation etc, were insufficient to maintain a stable system under extreme load.

The server we use now is TAG.net with uses non-blocking windows IO. It also uses a queue network for resource allocation so that resource is targeted to priority pages/services when under high load, this was a requirement of the sort of web application we are building.

Please - I love Apache! We I have been involved on Unix/Linux/FreeBSD projects Apache is has been a no brainer. For windows though life is not so simple :-(

Thanks for your input.

AJ


zerof wrote:
Alex Turner escreveu:
All,

For over a year we have been developing our own web server for running PHP on windows. We tried Apache 1x and 2x and they did not quite fit the bill. The first was not stable enough and the second caused threading problems with our COM library.

I am really interested in what configurations other people have gotten to work well with PHP on Windows. Especially when they have been using the COM interface. We use that A LOT, to contact old fashioned COM stuff and to connect through to .NET.

FYI

www.deployview.com           - my commercial blog
funkifunctions.blogspot.com  - my personal blog

Finally, we have done a fair amount of work figuring out how to optimize COM from PHP (4 in our case) if anyone is interested in this subject, I would be happy to write a blog article on it.

Cheers

AJ
-----
This is very strange!!!
I come using Apache 1 (php4) and Apache 2 (php5) in one same Windows machine, for a long time and never I had these problems.
http://www.educar.pro.br/compl/php45/
-----
zerof

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux