Bug #70098 [Csd]: Real memory usage doesn't decrease

From: Date: Thu, 17 Sep 2020 13:23:26 +0000
Subject: Bug #70098 [Csd]: Real memory usage doesn't decrease
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229048@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70098&edit=1

 ID:                 70098
 Updated by:         cmb@php.net
 Reported by:        robin dot kunde at recoursive dot com
 Summary:            Real memory usage doesn't decrease
 Status:             Closed
 Type:               Bug
 Package:            Performance problem
 Operating System:   Ubuntu 15.04, OSX 10.10.4
 PHP Version:        7.0.0beta1
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

> You may create tons of DateTime objects and unset it and reclaim
> memory but virtual and resident memory does not decrease while
> memory_usage(false) reports all fine.

DateTime objects use timelib, and that library does not use the
Zend memory manager.


Previous Comments:
------------------------------------------------------------------------
[2020-08-19 01:40:50] frame86 at live dot com

This bug is NOT fixed yet. It's still valid for DateTime object. You may create tons of
DateTime objects and unset it and reclaim memory but virtual and resident memory does not decrease
while memory_usage(false) reports all fine.

Running something after this causes Allowed memory size exhausted (php7.4)

------------------------------------------------------------------------
[2016-07-20 11:37:11] davey@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=668ecaa606b3203311b3329fcbd49b59f715e1e4
Log: Fixed bug #70098 (Real memory usage doesn't decrease)

------------------------------------------------------------------------
[2016-01-15 04:40:33] bwoebi@php.net

Related To: Bug #71375

------------------------------------------------------------------------
[2015-08-05 10:12:22] ab@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=668ecaa606b3203311b3329fcbd49b59f715e1e4
Log: Fixed bug #70098 (Real memory usage doesn't decrease)

------------------------------------------------------------------------
[2015-08-04 15:24:49] dmitry@php.net

The fix doesn't change the output of the test script, because MM GC is triggered only by
"Out of Memory". However, it's possible to add call to gc_mem_caches() before
printing memory usage, and in this case "real" memory consumption won't grow.

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=70098


--
Edit this bug report at https://bugs.php.net/bug.php?id=70098&edit=1


Thread (16 messages)

« previous php.bugs (#229048) next »