Your app's performance is one of the most important aspects of whether or not your business will succeed. According to Google's research, 29% of mobile users will avoid using a site or an application if it's too slow or too difficult to find information, with 70% of that user group doing so because the site is too slow. Diagnosing and fixing performance issues for your site or application helps your organization attract new users while retaining existing ones, and New Relic is just the tool to help you do it.
Diagnosing latency issues
First, you should familiarize yourself with the causes of high latency among most websites and applications. Knowing these can help you determine what the cause of high latency is for your own system. The most common types of high latency are:
Once you know what the common causes of latency are and where to go to find them, you can use the Summary and Ajax pages in to find the cause of your high latency. You don't necessarily need to know how the services should perform overall, you only need to look for major recent changes in behavior.
An example of diagnosing high latency
Once you're familiar with the common causes of latency, you can narrow down the specific issue that is impacting your site. Let's take a look at a service that is having issues with latency.
Here, you see the Summary page for a service showing a Largest Contentful Paint of 8.44 seconds. Since everything else falls under acceptable parameters, you can narrow down the cause of your latency as slow page load. You could select Session trace page for a specific view of what might be causing the issues with your LCP. This would be a good place to start a search to find what is causing your latency issues.
You could also select the Largest Contentful Paint section itself to go to the Web vitals page for a more generalized overview of errors based on page URLs, device type, browser type, and more. Once you find the source of the issue using this method, you can repair the problem and get your user experience back to the levels that keep your customers happy.