ID: 48046 Updated by: scott...@php.net Reported By: nikitin at freshframes dot com -Status: Open +Status: Feedback Bug Type: Performance problem Operating System: linux suse 10.3 PHP Version: 5.2.9 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Memory is never freed back to the system until the request ends, PHP will however re-use the memory assuming that a block the right size can be found. Previous Comments: ------------------------------------------------------------------------ [2009-04-22 13:51:07] crrodriguez at opensuse dot org unset has never freed memory, memory is freed at script shutdown. ------------------------------------------------------------------------ [2009-04-22 13:11:25] nikitin at freshframes dot com Description: ------------ I have a script running on two servers working on exactly the same data. First server is a debian system with php 5.2.8, where no problems with memory occur. Second server is a suse 10.3 with php 5.2.9, where i get: PHP Fatal error: Allowed memory size of 2097152000 bytes exhausted (tried to allocate 82 bytes) in ... Reproduce code: --------------- The output of the memory usage compared for each server: Here the 5.2.8 debian: 19 - simple (5) : AR1312-16 (16.23/16.49) <br /> 20 - configurable (5) : AR1312 <br /> 20 - simple (0) : AR1331-04 (16.33/16.58) <br /> 21 - simple (0) : AR1331-07 (16.36/16.62) <br /> 22 - simple (0) : AR1331-09 (16.40/16.65) <br /> Here the 5.2.9 suse server: 20 - configurable (5) : AR1312 <br /> 20 - simple (0) : AR1331-04 (91.98/92.06) <br /> 21 - simple (0) : AR1331-07 (94.03/94.32) <br /> 22 - simple (0) : AR1331-09 (96.08/96.37) <br /> 23 - configurable (0) : AR1331 <br /> 23 - simple (7) : AR1338-16 (99.20/99.28) <br /> -> memory in brackets (actual/peak) -> seems that php 5.2.9 has bad memory management? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48046&edit=1