We have build a framework on our test server, after a months it was complite and we uploaded it and hit the memory problem.
Only a small file allready takes loads of memory (9x more) then offline.
Offline:
*after autoloader require_once(/home/httpd/includes/php5/breox/core/front/controller.php) memusage 9kb
Onine:
*after autoloader require_once(/home/httpd/includes/php5/breox/core/front/controller.php) memusage 80kb
Code:
Code: Select all
$b = memory_get_usage();
require_once($sFileLocation);
$GLOBALS['debugmem'][] = '*after autoloader require_once('.$sFileLocation.') memusage '.floor((memory_get_usage()-$b)/1024).'kb';
PHP Version 5.1.2
Apache 2.0.52
Zend Platform Enterprise Version 3.0.3
Red Hat
Edit:
The file only contains a class.
We dont execute any code yet.