Hey Véronique,
Do you use a windows version or a linux version of PHP? If you use a
windows version, please try again with linux; I made the experience that
PHP under windows generally is a memory whore.
Best regards,
Tobias
Véronique schrieb:
Hello,
We have been using the Zend Framework for our projects at my job, and only
recently (after months of development of course ;)) have we noticed that
various components of the Zend Framework uses a lot more memory than we find
normal.
For example, according to the traces we left (using PHP's memory_get_usage()
directly), calling the Zend_Db Factory uses between 700 kb and 1 meg, and
merely instantiating the controller front used 1+ meg!
Is it just me or is that a lot of overheard? We are pretty much in trouble
since we are planning to use the framework on very high-traffic websites,
and some of our pages can go up to 5-6 megs of memory usage in total.
Any ideas or suggestions? We can always try to optimize a few things, but
I'm still at a loss as to why using the Zend components like the DB adapters
and the Zend_Controller_Front take up so much memory...