From: [EMAIL PROTECTED] Operating system: gentoo 2005.1 PHP version: 5.1.2 PHP Bug Type: Apache related Bug description: php doesn't free script memory when the process alive
Description: ------------ while playing with big arrays, i see that memory that was used on php with apache 1.3 sapi doesn't became free till the next time apache use *the same* process. here how the memory looks like *after* the scripts have finish to run: momo@(none) htdocs # ps -A v|grep http 27677 ? Ss 0:00 0 4188 8875 4532 0.8 /www5/bin/httpd 27679 ? S 0:00 0 4188 8875 3072 0.5 /www5/bin/httpd 27680 ? S 0:03 1 4188 31759 26580 5.1 /www5/bin/httpd 27681 ? S 0:00 0 4188 54019 48740 9.4 /www5/bin/httpd 27682 ? S 0:00 0 4188 8875 2532 0.4 /www5/bin/httpd 27683 ? S 0:00 0 4188 8875 2536 0.4 /www5/bin/httpd 27716 ? S 0:00 0 4188 8875 2536 0.4 /www5/bin/httpd 27764 pts/0 R+ 0:00 0 57 1406 436 0.0 grep http Reproduce code: --------------- for($a=0;$a<1024*512;$a++) { $ret[] = 1.1; } -- Edit bug report at http://bugs.php.net/?id=36197&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36197&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36197&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36197&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36197&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36197&r=support Expected behavior: http://bugs.php.net/fix.php?id=36197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36197&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36197&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36197&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36197&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36197&r=mysqlcfg