HackIX

Small Hacks for a Large World

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

A few interesting observations made by rvdavid; After investigating a recommendation to use Doctrine by a fellow blogger, Brian at Real of Zod, I have decided to run with Doctrine as my Domain Model in Zend Framework projects. The thing is, if I’m going to commit to this, I need to know that applications I build in the future with the Zend Framework while using Doctrine as an integral part of the Model layer will not take performance hits from things like memory usage.

With Doctrine doing a _lot_ of magic, I thought that this would be something that I wanted to see for myself.

4MB Memory to execute a simple Query?!?! Ffffff#$#!!!!

A quick google search took me to a Question posted on StackOverflow about Doctrine Memory Usage. The concerned OP was asking if he had a server misconfiguration or if this was normal for Doctrine to be using so much memory for a simple query. He posted a 4MB difference in Peak Memory Usage between the start of the request before the Doctrine Query was executed and after the Doctrine Query was executed. After reading that, I was a little nervous.

Use Opcode Caching to reduce Memory Usage.

via » rvdavid: A Web Developer's Blog.

Related posts:

  1. Doctrine Tricks — SoftDelete While pour­ing over some posts about Doc­trine I stum­bled upon...
  2. Deep Integration between Zend Framework and Doctrine 1.2 There’s been a lot of talk online about find­ing the...
  3. Setting Up Doctrine for Zend Framework 1.9.x After some fiddling and googling and Zendcast watching :) I...
  4. Writing a Zend_Auth_Adapter with Doctrine Jon Leben­sold pub­lishes another install­ment of his pop­u­lar screen cast...
  5. Logging in Users using Doctrine and Zend_Auth Jon Leben­sold pub­lishes the sec­ond part of his series on...
Categories: Development - Doctrine - Zend Framework
Test Results on Memory Usage of Zend Framework and Doctrine with APC: http://bit.ly/620pfS
20 January 10 at 18:58