From:             nikitin at freshframes dot com
Operating system: linux suse 10.3
PHP version:      5.2.9
PHP Bug Type:     Performance problem
Bug description:  memory does not free with unset?

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 bug report at http://bugs.php.net/?id=48046&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48046&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48046&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48046&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48046&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48046&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48046&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48046&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48046&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48046&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48046&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48046&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48046&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48046&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48046&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48046&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48046&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48046&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48046&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48046&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48046&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48046&r=mysqlcfg

Reply via email to