• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Very high TTFB when selecting FPM Apache vs FCGI :(

Code:
[root@a10-52-52-160 ~]# curl -s -w '\nLookup time:\t\t%{time_namelookup}\nConnect time:\t\t%{time_connect}\nSSL handshake time:\t%{time_appconnect}\nPre-Transfer time:\t%{time_pretransfer}\nRedirect time:\t\t%{time_redirect}\nStart transfer time:\t%{time_starttransfer}\n\nTotal time:\t\t%{time_total}\n' -o /dev/null https://fcgi-test.pwdev.de/

Lookup time:            0.004
Connect time:           0.087
SSL handshake time:     0.398
Pre-Transfer time:      0.398
Redirect time:          0.000
Start transfer time:    0.960

Total time:             3.017
[root@a10-52-52-160 ~]# curl -s -w '\nLookup time:\t\t%{time_namelookup}\nConnect time:\t\t%{time_connect}\nSSL handshake time:\t%{time_appconnect}\nPre-Transfer time:\t%{time_pretransfer}\nRedirect time:\t\t%{time_redirect}\nStart transfer time:\t%{time_starttransfer}\n\nTotal time:\t\t%{time_total}\n' -o /dev/null https://fpm-test.pwdev.de/

Lookup time:            0.004
Connect time:           0.081
SSL handshake time:     0.382
Pre-Transfer time:      0.382
Redirect time:          0.000
Start transfer time:    1.312

Total time:             2.781

To get TTFB value we need to subtract the "Start Transfer" value from the "Pre-Transfer" value here. In both cases, TTFB is less than 1sec and it is not so bad, actually.
 
Are you taking advantage of OPcache? OPcache can behave strangely with inefficient or error-ridden code which in some scenarios could possibly negate its benefits.
 
Thanks for your question. opcache.enable was set on so far. I disabled it but it didn't make it any faster. Still FCGI also had it enabled and it runs much faster?
Shouldn't FPM be faster in general?
 
Sorry, I really don't have the time for the entire screencast, intro and all, and it's likely that not many forum members will look at it. Do consider a different approach.

Are the two test sites from the first post still active?
 
Back
Top