Diagnosing a Slow Website Using PHP X-ray and Find Performance Bottlenecks

When a website or application feels like its 'slow performing', the common assumption is that its a 'server issue', whereas in many cases the bottleneck in terms of performance can be within the application / script itself.

 

When a website does slow down, there can be issues within the code which traditionally have been difficult to diagnose. We are now proud to announce that we offer 'PHP X-Ray' to allow you to generate reports for your sites giving you a deep insight into performance-related issues.

 

PHP X-Ray, included with some of our servers, provides detailed information on performance bottlenecks within your PHP applications or WordPress installations. If a site has sluggish plugins, database queries, functions, or external calls, the X-Ray tool helps pinpoint the underlying problem. Let us know if you need this and we can help set this up.

 

How to access PHP X-Ray

PHP X-Ray is available by selecting the 'X-Ray' option through cPanel...

 

 

Once you have selected the option, you will be presented with a screen similar to the following...

 

As you can see in the image above, you can trace multiple domains and subdomains, view the status of their trace, set the IP to check, set the number of requests to collect, and set a timeframe for collection.

 

Note: PHP-Xray will only collect and gather results when Bolt-Cache is disabled entirely (your sites are using 'Proxy').

 

Once you have visited the site a few times, you will see the 'Collected Requests' column will be populated. At this point, you can then view the results of the collection, which will allow you to diagnose which particular area of your application is underperforming.

 

For instance, you can see a list of traces on database queries:

 

 


at 11:56am, 28/01/2021

Updated: at 12:55pm, 28/01/2021

Been read 494 times

Similar Articles

10 Ways to Optimise Blog Posts for SEO


Blogging for SEO is pretty much a no brainer. Publishing regular blog posts gives you opportunities to target a large number of long-tail keywords, keeps people on your website longer, and gives other websites something to link back to. Getting your...

Speed and Reliability are Key


With so many ecommerce web hosting solutions out there to choose from, it can be tempting to go with the first one you see. And while you could get lucky and have no issues with your choice years down the road, it’s not a bet most of us should...