Find your performance bottleneck with New Relic
Table of contents
- 1 Why use New Relic?
- 2 New Relic is a third party tool
- 3 Activate New Relic
- 4 Troubleshooting
- 4.1 I’m getting The New Relic integration requires the newrelic-php5 agent while my php version is set to php7`.
- 4.2 Turn off NR transaction tracer
- 4.3 I’m getting: Fatal error: Aborting! The New Relic imposed maximum PHP function nesting level of ‘5000’ has been reached
- 4.4 Disable all apdex notifications for New Relic.
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!
Activate New Relic
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!
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
[newrelic] newrelic.transaction_tracer.detail = 0
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:
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
Disable all apdex notifications for New Relic.
To disable all
apdex notification mails:
APMand scroll all the way down to the bottom to the section
Default application alert policy
- Now set both the red and the orange apdex warning to
- Unselect the “Alert when any ping URL is unresponsive for 1 minutes”