Jump to content

Apache: Child process exited with status 3221226324


zantoro

Recommended Posts

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.

 

Link to comment
Share on other sites

Cannot initialize zend_mm storage, (child process exited with status 3221226324), relates to PHP Zend Engine (2) core => zend_alloc.c

 

Basically it means that you have exhausted every available thread and PHP can not start a new one. I recommend running PHP as CGI, application/x-httpd-php "/php/php.exe", instead of using php5_module "/php/sapi/php5apache2.dll" to solve that problem. As a side note the win32 version of Apache can only handle a maximum pool of 600 threads, anything over that the threads get held in a wait proccess, no matter what ThreadLimit or Threadsperchild is set to. Yes the thread get assigned, but it not executed until the current working thread limit falls back below 600! Apache running under Win(64) or running under any version of Linux does not have those limitations.

Link to comment
Share on other sites

Hello Printf,

first I would like to thank you for your precious comment, it does make sense as the crashes occur mostly during peak time.

I created a test machine (god bless vmware) and added these lines:

 

ScriptAlias /php/ "D:/!Websites/PHP-5/"

AddType application/x-httpd-php .php .inc

Action application/x-httpd-php "/php/php-cgi.exe"

 

It seems to work well, I will test it a little bit more and keep you posted on the outcome for production.

 

P.S.: we have already planned a migration to Linux OS

 

Thanks again,

Roberto.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.