My drupal site was working fine. Then i disabled access to public with some session thing, After a week or something , it is taking more than 12 second to establish a connection, then the loading is real quick.

79 requests  ❘  35.47KB transferred  ❘  14.87s (onload: 14.87s, DOMContentLoaded: 13.06s)




another thing is its better for garland theme, so possibly theme problem , what what may cause this much waiting? not db_query as i checked even with blank page.tpl its taking 8+ sec! Please help!

  • 1
    Warning: 'some session thing' is undefined. Please define it so we can help :). Also see drupal.stackexchange.com/questions/36147/…, it's probably related
    – Clive
    Aug 23, 2012 at 9:32
  • actually it has nothing to do with slow issue, removed that session thing, but still it taking too much time!
    – Serjas
    Aug 23, 2012 at 9:34
  • 1
    Ah ok, far more likely to be one of the issues discussed on that other post then. First step...disable the auto-cron run and see if the problem magically goes away
    – Clive
    Aug 23, 2012 at 9:35
  • 1
    It's impossible to say without seeing all of the code from your theme, you need to profile the site with something like xhprof to see which functions are taking the longest time to run
    – Clive
    Aug 23, 2012 at 10:35
  • 1
    Finally found problem - panel templates in my theme!! added as an answer
    – Serjas
    Aug 23, 2012 at 11:43

2 Answers 2


Finally found problem - panel templates in my theme

for those who experience same , can follow these steps

  • my site is optimized with APC and mod_deflate, so in pagespeed for chrome test, its 93/100

  • real problem was waiting time . chrome network analysis shows first GET took approx 18+ sec , then loading of other elements is real quick

  • after several test, i found my theme is causing delay. so i put a blank page.tpl in my theme. And you know it took 12+ sec to load that blank page! so it was not any db query problem!

  • so problem must be with .info, disabled css, then js, still no improvement

  • finally removed panel template declaration from .info , and now site took .3 sec to load!

  • next i tried with only one panel template in my theme, site took 1-2 sec

I have 10 panel templates in my theme.so panel templates affects site performance!

  • Better to add Panels templates using ctools layout plugins. Feb 13, 2013 at 23:01

I have been facing such issues. I had spent many hours in profiling and finding which module is causing problem. Unless you find the bottleneck you cannot fix it. I had explained it in a post. http://www.mindyourcode.com/php/drupal-profiling-performance-analysis-for-optimization-finding-the-performance-bottlenecks-in-your-application-at-core-level/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.