From: tif at avatartechnology dot com Operating system: Suse Linux PHP version: 4.4.2 PHP Bug Type: Performance problem Bug description: Initial memory usage unpredictably jumps
Description: ------------ We have a webapp which works flawlessly for months at a time, and then suddenly has memory usage problems. We've debugged this enough to know that this is not a gradual growing of memory usage, but a sudden jump. We have put in a check using get_memory_usage that runs on the startup of each page and the returned number stays very steady (around 16K), then it will suddenly start returning a large number (around 4M seems to be a number I see alot). We even wrote a 1-line php script which prints the number and monitored it. It remains unchanged until this problem occurs and then it remains at the high number until apache is restarted. Searching the logs, I find no unusual activity at the time of the change. I lied about the PHP version because we have seen this on many versions of PHP4, different linux distros, and different Apache versions, with and without Zend. I'll be happy to perform most any debug steps you can think of. We are unfortunately unable to install random versions of PHP since these are production servers. We are currently running 4.3.10. -- Edit bug report at http://bugs.php.net/?id=36755&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36755&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36755&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36755&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36755&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36755&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36755&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36755&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36755&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36755&r=support Expected behavior: http://bugs.php.net/fix.php?id=36755&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36755&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36755&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36755&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36755&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36755&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36755&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36755&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36755&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36755&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36755&r=mysqlcfg