Re: [PHP] Negative memory_get_usage() Values

2006-11-26 Thread Richard Lynch
On Sun, November 26, 2006 3:27 pm, Chris wrote: > Okay, I modified the script as follows to allow for collecting data > and graphed it. The graph is at http://dented-planet.net/graph.png > (sorry, I'm not versed in created perfect charts). That's pretty weird... I mean, something is not right wit

Re: [PHP] Negative memory_get_usage() Values

2006-11-26 Thread Chris
Chris wrote: Whoops, I'm using PHP 5.2.0 on Mac OS X 10.4.8. Memory usage in php5.2.0 has been changed: http://www.php.net/UPDATE_5_2.txt Under "Improved memory manager and increased default memory limit" Not sure why you'd be getting negative values but I'm guessing it's related to those

Re: [PHP] Negative memory_get_usage() Values

2006-11-26 Thread Chris
Okay, I modified the script as follows to allow for collecting data and graphed it. The graph is at http://dented-planet.net/graph.png (sorry, I'm not versed in created perfect charts). echo $i . ' ' . memory_get_usage() . ' ' . memory_get_usage (true) . "\n"; } } ?> Chris [EM

Re: [PHP] Negative memory_get_usage() Values

2006-11-26 Thread Chris
Whoops, I'm using PHP 5.2.0 on Mac OS X 10.4.8. I'll do as you suggest (and learn more about PHP memory usage) to try to see what's going on. Chris [EMAIL PROTECTED] On Nov 26, 2006, at 12:34 PM, Richard Lynch wrote: What version of PHP and what OS? I *think* that there is some jiggery

Re: [PHP] Negative memory_get_usage() Values

2006-11-26 Thread Richard Lynch
What version of PHP and what OS? I *think* that there is some jiggery-pokery going on in memory_get_usage() in PHP 5 and managed memory where it would make perfect sense to get negative numbers occasionally... You may also want to log the memory_get_usage inside the loop, and then graph the memor