#41713 [Com]: Persistent memory consumption since 5.2

From: Date: Mon, 16 Jul 2007 23:23:33 +0000
Subject: #41713 [Com]: Persistent memory consumption since 5.2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115124@lists.php.net to get a copy of this message
ID: 41713 Comment by: stephen dot johnston at guildlaunch dot com Reported By: mplomer at gmx dot de Status: Assigned Bug Type: Performance problem Operating System: win32 only PHP Version: 5.2CVS-2007-07-12 Assigned To: dmitry New Comment: We are seeing a similar problem in 5.2.3 with Apache 2.0.59 and 4g of RAM. After a few hours of running with more than 70 threads per child in Apache PHP will start throwing errors saying "out of memory" with seemingly random memory sizes. It seems to happen in our environment once Apache's memory usage reaches around 1gig, but that is not always the case. Our site is growing fast and we need to be able to up Apache threads without recycling Apache every 2 hours. Unfortunately, the PHP community in general seems to respond to error reports relating to this with "increase your memory limit". This is *not* a memory limit issue. I would be more than willing to work with you all to provide debug info, but we cannot reproduce this in our test environement with load testing and I don't want to "mess around" with our production environment without some specific direction on how to correctly profile this issue. Previous Comments: ------------------------------------------------------------------------ [2007-07-14 21:15:15] jani@php.net And I can reproduce this too on Windows, using latest snapshot available. ------------------------------------------------------------------------ [2007-07-14 09:15:28] jani@php.net Dmitry, please check this out. ------------------------------------------------------------------------ [2007-07-11 08:43:55] mplomer at gmx dot de I tested with PHP 5.2.0 now, and I can reproduce the described behaviour from [30 Jun 10:19am UTC] too. Only when I am testing with PHP 5.1.6, I can't reproduce it. But I agree with you, that this points at the new memory management on win32. ------------------------------------------------------------------------ [2007-07-10 23:39:09] spamtrap at psychoticwolf dot net I see this with PHP 5.2.1 - 5.2.3 (mod_php5 with Apache 2.0.59 and 2.2.4 on WinXP and Win2003). I did some regression testing and it seems to have started between 5.2.0 and 5.2.1 which points at the new memory management on win32. Memload was normal under 5.2.0. After awhile, Apache consumes as previously reported, 300-600mb (usually around 330mb + 6-700mb virtual), and, curiously, PHP thows a Fatal Error that its exceeded its memory limit for that script, even though it hasn't, as the script doesn't use more than about 300k. (Only seen this last part once, so far, so that might be a fluke.) ------------------------------------------------------------------------ [2007-07-09 13:48:22] mplomer at gmx dot de Does somebody have any ideas to track this down? Are there any PHP core developers with a windows-test-environment? Aren't there any PHP developers who have the problem, that Apache/PHP eats up all RAM after some hours of developing and testing bigger PHP-projects? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41713 -- Edit this bug report at http://bugs.php.net/?id=41713&edit=1

« previous php.bugs (#115124) next »