Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:24:01+00:00 2026-05-25T15:24:01+00:00

I am struggling with poor performance in Zend MVC. I set up a single

  • 0

I am struggling with poor performance in Zend MVC.

I set up a single controller, which only does die(), and I enabled xdebug, and pulled up webgrind on my request which tells me:

789 different functions called in 2150 milliseconds (1 runs, 137 shown)

I am having problems determining exactly what is taking so long:

[procedural]      {main}    O   1   9   2150
[class]       Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap  O   5   7   1203
[class]       Zend_Config_Ini->_processKey  O   622     451     1191
[class]       Zend_Config_Ini->_processSection  O   2   49  1023
[class]       Zend_Application_Bootstrap_BootstrapAbstract->_executeResource    O   16  11  1017

(The above pretty much tells me it’s the bootstrap firing up classes defined in my application.ini – but I have no idea which ones are slow)

What’s a good way to pinpoint exactly what step in the code which is taking the bulk of the processing time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:24:02+00:00Added an answer on May 25, 2026 at 3:24 pm

    You should be able to expand webgrind output to locate what is your slower function call. Alternatively you could use function trace feature of Xdebug during your profiling session to get more informations on your function calls.

    Generally speaking you should use cache wherever is possible. Memcache is faster than APC as Zend_Cache backend, but you still need APC extension installed (even in development mode) to get a great speedup of your code. I’ve benchmarked its impact on Zend Framework Quick Start on my blog (that post is in Italian, but benchmark data are in English) and the result is pretty impressive, a 3x speedup for the home page.

    I’ve applied the cache idea also for the Zend_Application config file (which in your example take half of the profiling time). I discussed it here with Matthew Weier O’Phinney, Zend Framework project leader. What I’ve done is to override the default Zend_Application _loadConfig method with a custom one which caches the result of the parsed file. You can find my class which implement this strategy here on github.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Iam struggling with NHibernate and its lazyload. I have a structure which I simplified
Struggling with this one. I have set up a basic email/enquiry form for a
Im struggling to create a functionality which keeps on incrementing css property of an
I am struggling at the moment with Mallet's ridiculously poor documentation regarding HMMs. I
Struggling to set permissions on a listitem... everything appears to be working fine.. no
Just struggling with a simple issue with ASP.NET MVC. I have a list of
Really struggling to figure out extending the immutable Set with a class that will
Struggling to learn Haskell, how does one take the head of a string and
i am struggling with the CSS of an unordered list which i want to
Struggling with styling the mouse over for a button ... I have managed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.