Problem
You encounter problems with your New Relic for PHP installation but are not sure what is the cause.
Solution
Monitoring your New Relic logs may help diagnose the problem. The New Relic PHP agent and daemon have their own logs. To monitor the logs:
- Check both logs for content:
- Default agent log location:
/var/log/newrelic/php_agent.log
- Default daemon log location:
/var/log/newrelic/newrelic-daemon.log
- Default agent log location:
- Set the log level for each to
verbosedebug
for more information: - Restart your app.
- Collect 5 to 10 minutes of log time with your log level set to
verbosedebug
. - Examine your logs and use the information to diagnose the problem.
- When you are finished troubleshooting, reset the logs' levels. Do not keep them at
verbosedebug
.
注意
Watch the size of your log files. Depending on your application, they can grow very quickly.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。