[phpa] PHP bug with memory handling

I've just confirmed that there's a PHP bug in the memory handling for PHP
4.2.1, and quite possibly other releases too.

Unfortunately Zeev denies that it's a bug and I'm more than a little
disappointed by this, but the bottom line is that if you use
--enable-memory-limit, PHP starts each request in the belief that some
memory is already allocated, and this value increases on every request.
This happens with and without PHPA installed, but does happen quicker with
PHPA installed.

From my own tests now and in the past it doesn't look like real memory is
leaking.

The workaround is to use a low setting of maxrequestsperchild in
apache (100 for example), and to raise the memory limit to a high setting.

I'll see if I can spot the problem in PHP, and may be able to reduce the
speed with which PHPA causes the bug to become critical.

nick



------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts:

  • » [phpa] PHP bug with memory handling