|
Posted by Ivαn Sαnchez Ortega on 07/04/07 00:47
vivek@thoughtconvergence.com wrote:
> Could someone please help me figure out why the memory usage
> fluctuates when I use mysql_real_escape_string? I'm finding (what I
> think are) memory leaks with a few mysql functions in php and I'm
> trying to figure them all out. This one is pretty vexing. Thanks in
> advance.
Sorry, not able to reproduce here:
mem: 99552
mysql
mem: 99552
mem: 99552
mysql
mem: 99552
mem: 99552
mysql
mem: 99552
mem: 99552
mysql
mem: 99552
(Keep in mind that I use a amd64 processor, so the 64-bit addresses waste a
lot of memory).
Question: does the memory usage go up and up, or does the garbage collector
come after some time (hint: go wild with the loop count)?? You may just be
creating temporal variables to hold the result of mysql_real_escape_string,
that aren't collected thereafter.
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.20-1-amd64 kernel, KDE 3.5.7, and PHP
5.2.3-1 generating this signature.
Uptime: 02:43:00 up 18 days, 10:13, 5 users, load average: 1.72, 1.78,
1.95
[Back to original message]
|