You are here: Re: mysql_real_escape_string memory leak? « PHP Programming Language « IT news, forums, messages
Re: mysql_real_escape_string memory leak?

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

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация