Test Results on Memory Usage of Zend Framework and Doctrine with APC

A few inter­est­ing obser­va­tions made by rvdavid; After inves­ti­gat­ing a rec­om­men­da­tion to use Doc­trine by a fel­low blog­ger, Brian at Real of Zod, I have decided to run with Doc­trine as my Domain Model in Zend Frame­work projects. The thing is, if I’m going to com­mit to this, I need to know that appli­ca­tions I build in the future with the Zend Frame­work while using Doc­trine as an inte­gral part of the Model layer will not take per­for­mance hits from things like mem­ory usage.

With Doc­trine doing a _lot_ of magic, I thought that this would be some­thing that I wanted to see for myself.

4MB Mem­ory to exe­cute a sim­ple Query?!?! Ffffff#$#!!!!

A quick google search took me to a Ques­tion posted on Stack­Over­flow about Doc­trine Mem­ory Usage. The con­cerned OP was ask­ing if he had a server mis­con­fig­u­ra­tion or if this was nor­mal for Doc­trine to be using so much mem­ory for a sim­ple query. He posted a 4MB dif­fer­ence in Peak Mem­ory Usage between the start of the request before the Doc­trine Query was exe­cuted and after the Doc­trine Query was exe­cuted. After read­ing that, I was a lit­tle nervous.

Use Opcode Caching to reduce Mem­ory Usage.

via » rvdavid: A Web Developer’s Blog.




Tags: , ,

1 Response to "Test Results on Memory Usage of Zend Framework and Doctrine with APC"

Leave a Comment

*

Get Adobe Flash player