#33363 [Opn->Fbk]: Crash When memory_get_usage reaches 4868856
| From: | tony2001@php.net | Date: | Thu, 16 Jun 2005 14:31:02 +0000 |
| Subject: | #33363 [Opn->Fbk]: Crash When memory_get_usage reaches 4868856 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80449@lists.php.net to get a copy of this message | ||
ID: 33363
Updated by: tony2001@php.net
Reported By: asnyder at mddev dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux Fedora
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-06-16 16:24:53] asnyder at mddev dot com
Description:
------------
Here's the problem in the nutshell. For whatever reason a class
consisting of a bunch of integers, and strings, appears to take up an
additional 500k, when added to the session, or even just to the code.
According to my math, it should be around .8 of a KB, not around 500KB,
eitherway, what happens is when you keep adding more of these objects,
it works until it reaches memory_get_usage of 4868856, which is around
4.6 MB!, when the entire page should only be a few KB( furthermore, if
you do memory_get_usage on a blank page it starts with a figure around
14384, why is it any size?)if I'm not mistaken, it doesn't finish
rendering all the html. Furthermore, if you add one of these 500KB
objects, and then later unset(it and all it's components) it, it only
frees up 100KB. Why is this happenning? Why are types taking up so much
space, and what can I do to get around this problem?
Asher Snyder
Reproduce code:
---------------
Due to legal reasons, I'm not able to paste any code into this area.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33363&edit=1