Find your performance bottleneck with New Relic

in ToolsTroubleshooting Tags: performance

New Relic is a profiling tool that will explain what is happening “behind the scenes”. You can use it to determine the performance bottleneck of your shop.

Why use New Relic?

New Relic gives you real-time and historical information about the performance of your shop. Some important features:

  • Easy to use; one click install.
  • Gives you a clear overview of possible bottlenecks: pagespeed, transactions, error rates, slow queries and many more.
  • You can add alerts for when the performance or error rate reaches a specific threshold.
  • You can customize and filter the output so it only gives you information you need.
  • Use it to measure performance before and after you make adjustments, so you will have scientific data on which scenario performs better!

New Relic is a third party tool

Thanks to our partnership with New Relic, all of our customers get the New Relic plan lite for free!

If you require more advanced profiling, such as application trace details, you can upgrade to a paid Pro plan from within your Byte Service Panel. For questions, please contact: support@newrelic.com.

Activate New Relic

New Relic account on Hypernode

Activate NR in your Service Panel

Activating New Relic is done on the Byte Service Panel. Follow the next steps to activate it:

  • Log in on the Service Panel
  • Select your Hypernode.
  • Click on the Hypernode tab.
  • Click on the New Relic option.
  • Click on the Activeer het gratis! button.
  • Check the Ja, ik ga akkoord! button.
  • Press the Activeer New Relic button
  • Press the Naar New Relic button to go the New Relic dashboard

Please take into account that it takes a most 10 minutes for our system to actually create the account. Grab a cup of coffee and relax, while we create your account!

Troubleshooting

I’m getting The New Relic integration requires the newrelic-php5 agent while my php version is set to php7`.

This error appears when the native magento newrelic extension is installed in your webshop while the newrelic extension is disabled.
To solve this, log in on our service panel and enable Newrelic.

Turn off NR transaction tracer

In some very rare cases, when you have enabled a huge amount of extensions, or use code with an extraordinary amount of recursion, the detailed tracing might add some overhead to your sites performance. In that case, you should disable trace details by putting these lines in /data/web/public/.user.ini:

[newrelic]
newrelic.transaction_tracer.detail = 0

I’m getting: Fatal error: Aborting! The New Relic imposed maximum PHP function nesting level of ‘5000’ has been reached

This error is created by the New Relic php extension and is caused by an infinite recursive loop within magento.
The newrelic php extension detects this loop and exits the php process before php runs out of cstack frames and crashes with a segfault.

We already changed the maximum nesting level for this extension from 500 to 5000, which should be more then enough for Magento, so if you run into this error, check your newrelic traces to find the recursive loop.

As a quickfix it is possible temporary change the value from 5000 to something bigger. This will not fix the issue as the cause is still there, but it will remove the erorr message.
To do this create a .user.ini file in /data/web/public with the folllowing setting:

[newrelic]
newrelic.special.max_nesting_level=10000

And restart PHP-FPM for the changes to take effect immediately:

$ pkill -9 -u app php5-fpm

Another option is upgrading to the latest magento version, as magento fixxes this problem in 1.9.3.

Disable all apdex notifications for New Relic.

To disable all apdex notification mails:

  • Select APM and scroll all the way down to the bottom to the section ALERTS.
  • Select ALERTS > Application Policies
  • Click Default application alert policy
  • Now set both the red and the orange apdex warning to Disable.
  • Unselect the “Alert when any ping URL is unresponsive for 1 minutes”

0