Memory problems

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Memory problems

Post by []InTeR[] »

I hava a issue with memory.

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';
 
We are working with:
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.
Post Reply