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:


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Add a Favicon to Your Website

Most of the websites online have their own specific logos and in most cases, they are used as...

How to Clear Browser Cache

Browser cache is a really useful function for all daily web visitors. If you are a novice in...

php error: Allowed memory size of x bytes exhausted

If you are getting an error like "Allowed memory size of... in file...

How to create a user-friendly URL using .htaccess?

If your website is using long URL like example.com/files/folder/sitemap.html, you can change it...

How to redirect a page to another page or website using .htaccess?

If a page on your website no longer exist and you want to redirect it to your new page or website...