• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Webpages are very slow using PHP-FPM for 7.0

Carlosmls

New Pleskian
I have a website with a high traffic and this website load very slow more than 3 seconds on load a simple website, i use FPM in php 7.0 and the OS is Centos and i want to speed up this website, how i cant do thats?
 
It is very unlikely that the reason for a delay is PHP 7. My suggestions here are:
1) Run the free Pingdom speedtest for the website. Pingdom will show you exactly what parts of the website delivery process cause the biggest delays.
2) Insert a microtime measurement into your code and narrow the bracket down to where the code really spends a lot of time.
Code:
$tx1 = microtime(true);
... your code here ...
$tx2 = microtime(true);
error_log(($tx2-$tx1)*1000);
This can be highly effective, because you will identify loops and statements that are very expensive. Once you have identified the problematic code you can easily replace it with faster solutions.
 
Hi, Carlosmls

Do you use an interaction with a database or with a file system or a connection to external services? Maybe do you use external resources in generated HTML? I think to analyse code with microtime() a good idea. Another way it is analysing result HTML with browser development mode.

Are you monitor a performance of CPU and disk subsystem of a web server? Do you use any cache techniques or cache services?
 
Back
Top