Author |
|
zantoro
Joined: 05 Feb 2009 Posts: 9
|
Posted: Tue 10 Feb '09 10:59 Post subject: WAMP - child process exited with status 3221226324 |
|
|
I have a WAMP server:
RAM: 2GB
VMWare: Win 2003 SP2
PHP 5.2.6
Apache 2.2.9
Heavily loaded: 8000 users per day, up to 800 concurrent connections
ThreadLimit 800
Threadsperchild 800
I'm already aware WAMP is not suitable for heavily loaded production servers (Linux would be better)
once a day (approx.) the service restarts with this error: child process exited with status 3221226324
Sometimes the service restarts with this error (less frequently): "Cannot initialize zend_mm storage"
In a previous post on this forum James told me this exit code might be due to the crash of a PHP extension.
Assuming the PHP extensions are only specified in the php.ini and that they are the ones declared after the "extension=" tag, I see these 5:
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_bz2.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
The first two are needed, the other 3 I don't know.
Is there a way to know which extensions I need?
Is there a way to know which extension is crashing?
Any feedback would be welcome,
Bye,
Roberto. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 10 Feb '09 18:23 Post subject: |
|
|
I guess you don't need bz2 extension.
mbstring and mcrypt are needed by some php applicatgions like phpmyadmin. gd2 is used by many php applications.
What do you run on your server? |
|
Back to top |
|
zantoro
Joined: 05 Feb 2009 Posts: 9
|
Posted: Wed 11 Feb '09 11:52 Post subject: Here is what I did so far |
|
|
Hello James,
I asked the same question on another blog and I got a slightly different response:
"Basically it means that you have exhausted every available thread and PHP can not start a new one"
their solution is the same as your first answer: PHP on CGI (more of a workaround but it's ok till we migrate).
I have added these lines in the httpd.conf and it seems to work fine:
ScriptAlias /php/ "D:/!Websites/PHP-5/"
AddType application/x-httpd-php .php .inc
Action application/x-httpd-php "/php/php-cgi.exe"
we will see if the server crashes with heavy load.
I will keep you posted,
Thanks,
Roberto. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 11 Feb '09 13:08 Post subject: |
|
|
I recommend you to run PHP over fcgid and not normal cgi! fast cgi is much faster! |
|
Back to top |
|
zantoro
Joined: 05 Feb 2009 Posts: 9
|
Posted: Wed 11 Feb '09 15:25 Post subject: documentation |
|
|
Sorry but I cannot find any clear documentation on how to implement fast cgi on a WAMP.
Do you have any suggestion?
Thanks,
Roberto. |
|
Back to top |
|
zantoro
Joined: 05 Feb 2009 Posts: 9
|
Posted: Wed 11 Feb '09 15:41 Post subject: unstable? |
|
|
One more thing, this website states this version can be unstable, I would like to understand to what extent:
http://simcode.com/wp/2008/01/30/fastcgi-and-php-5-on-windows/
Quote: | There are caveats however. By far the most important is that FastCGI and PHP on Windows is inherently unstable |
What do you think about it?
Thanks,
Roberto. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 11 Feb '09 17:29 Post subject: |
|
|
For me and many others PHP runs very stable and well with fast cgi. Also apachelounge itself runs on PHP over fast cgi. You can find a download http://www.apachelounge.com/download/
I've made only good experience with fast cgi. M$ has spend some money to apache software foundation and now also the PHP on IIS runs over the fast cgi interface. |
|
Back to top |
|