Troubleshooting Slow Response Issues with PHP Application

Play Troubleshooting Slow Response Issues with PHP Application
Sign in to queue

Description

PHP performance issues are quite challenging to troubleshoot as we don't have any in-built tools that comes with IIS. We could use tools like Windows Debugging tools, Debug Diagnostic or Perfview for any slow response for an applications running in IIS. However for PHP application this may not be helpful. 
This Video helps in using various tools like PHP profiler X-debug and WinCacheGrind on troubleshoot slow response issues for PHP application. For this session I'm creating a simple php page named Display.php and time.php that takes 10 seconds to execute. Following is the code snippet 

<?php
echo date('h:i:s');
echo "<br />";
sleep(10);
echo date('h:i:s');
?>

Embed

Download

Download this episode

The Discussion

  • User profile image
    olidev

    A slow php website is often due to either because of server or stack. For example shared hosting and cloud hosting are not equal in performance. Similarly, a stack that includes caching services will be lot faster than the one that doesn't have it. Php website will perform best on a dedicated server with caching services enabled. However, manually setting up a server and configuring caching is quite difficult and time taking. So, it is better to find a php hosting provider that automates the server setup and has caching enabled by default on their servers.

Add Your 2 Cents