[PHP]Memory: how much is a lot?

Associate
Joined
21 May 2003
Posts
1,365
We've just come across an issue with one of our live systems where a script ran out of memory. The max memory on the live server was set to 32mb - which I assumed was more than enough, but for a particular transaction we had 10k+ items, all of which were instantiated as individual transaction item objects, and this took it over the 32mb. Upping to 64mb resolved the issue, but I can't help thinking there may be some optimization required.

So, to my question: does 10,000+ objects > 32mb sound right, or is it likely there's something else sapping memory?
 
Back
Top Bottom