Solution
Follow these steps to identify and troubleshoot the cause.
-
Use New Relic APM’s Infrastructure page to identify top memory-intensive processes. For steps, refer to New Relic [Infrastructure monitoring Hosts page: Processes tab]. If services like Redis or MySQL are the top source of memory consumption, try the following:
- Check that you are on the latest version. Newer versions can sometimes fix memory leaks. If you are not on the latest version, consider upgrading. For steps, refer to Change Services in the Commerce on Cloud Guide.
- If you still cannot identify the source of increased memory consumption, check for MySQL issues like long-running queries, Primary keys not defined, and duplicate indexes. For steps, refer to Most Common database Issues in Adobe Commerce on cloud infrastructure in the Commerce Implementation Playbook.
- If there are no MySQL issues, check for PHP issues. Review running processes by running
ps aufx
in the CLI/Terminal. In the terminal output, you will see cron jobs and processes that are currently being executed. Check the output for the processes’ execution time. If there is a cron with a long execution time, the cron may be hanging. Refer to Slow performance, slow and long-running crons and Cron job stuck in “running” status in the Commerce Support Knowledge Base for troubleshooting steps.
-
If you are still struggling to identify the source of the problem, use New Relic APM’s Transaction page to identify transactions with performance issues:
- Sort transactions by ascending Apdex scores. Apdex refers to user satisfaction to the response time of your web applications and services. A low Apdex score can indicate a bottleneck (a transaction with a higher response time). Usually, it is the database, Redis, or PHP. For steps, refer to New Relic View transactions with highest Apdex dissatisfaction.
- Sort transactions by highest throughput, the slowest average response time, most time-consuming, and other thresholds. For steps, refer to New Relic Find specific performance problems. If you are still struggling to identify the issue, use New Relic APM’s Infrastructure page.
-
If you cannot identify the cause of increased memory consumption, review recent trends to identify issues with recent code deployments or configuration changes (for example, new customer groups and large changes to the catalog). It is recommended that you review the past seven days of activity for any correlations in code deployments or changes.
-
If the above methods do not help you find the cause and/or solution within a reasonable time, request an upsize or place the site into maintenance mode if you have not already. For steps, refer to How to request temp resize in the Commerce Support Knowledge Base and Enable or disable maintenance mode in the Commerce Installation Guide.
-
If the upsize returns the site to normal operations, consider requesting a permanent upsize (contact your Adobe Account Team), or try to reproduce the problem in your Dedicated Staging by running a load test and optimize queries, or code that reduces pressure on services. Refer to Load and stress testing in the Commerce on Cloud Guide.