• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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