0

I've just installed NewRelic on a Drupal 7 website, and I'm now going through the most obvious issues that jump out at me.

Looking at the Drupal specific menu items, I notice the "Token" module accounts for about 1 min active time in 30 minutes clock time.

The list of hooks shows the "tokens" hook accounting for 203 seconds, which is about 80% of the total time. Each call takes less than 0.02ms, but the hook gets called over 18 million times in 30 minutes clock time. The closest one is node_view with 500 thousand calls. That seems more reasonable.

I can't, right off the bat, find a way to dig into the call tree for the Drupal hooks.

My questions:

  • Does the amount of calls to the tokens hook seem normal?
  • Is there a way in New Relic to find out where most hook invokes originate?
  • Does your site use a lot of tokens (or few tokens but very often)? – Clive Oct 8 at 13:48
  • I haven't really encountered tokens in the parts of the site I've worked on in the last couple of years. I inherited this site from a previous developer, and it's very extensive, and a little idiosyncratic. I guess there have to be tokens somewhere though. Would there be a way of finding out where? – Menno van den Heuvel Oct 8 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.