• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Issue Really high TTFB as of late

UnS3eN

Basic Pleskian
Hi Guys,

Getting really high Time-To-First-Byte as of late. Sometimes over 40 seconds (even from localhost):
Code:
# 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 http://domain.tld/

Lookup time:            0.054
Connect time:           0.054
SSL handshake time:     0.000
Pre-Transfer time:      0.054
Redirect time:          0.000
Start transfer time:    41.255

Total time:             41.312

Have about 50 Wordpess sites on it and 5 HTML sites served by Apache/Fast-CGI. No issue on the HTML sites, only the Wordpress sites are affected, even just blank installs with nothing in them. Setting up nginx proxy doesn't improve things by a lot.

Host: VMware 5.5.0
Guest: CentOS 6.9 (Final)
Plesk: Onyx Version 17.5.3 Update #44
CPU: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz (8 vCores allocated)
RAM: 12GB
vNIC: VMXNET 3

Any thoughts on the matter? I already lost track of things I tried so far, so a fresh pair of eyes/brain would be appreciated.
 
Experimented a bit with FastCGI and FPM - setting the hosting options to serve all content via nginx with FPM seems to dramatically improve the TTFB times:

Code:
# 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 http://ckp-dev.plesk.4pm.ie/

Lookup time:            0.002
Connect time:           0.002
SSL handshake time:     0.000
Pre-Transfer time:      0.002
Redirect time:          0.000
Start transfer time:    0.027

Total time:             0.029

Is apache really this bad at handling multiple wordpress sites at the same time? Seem a bit bizarre there is so much improvement when switching to FPM.
 
Checking your site here > Pingdom Tools
looks like you need to turn on caching, fix your header and other items.

Wordpress, even on a heavy theme should take under 500ms to load using Plesk with Apache/PHP-FPM.

Disable caching in WP plugins and handle things from the server side for a major improvement.

Lastly, once you get things in order and you've got an ssl on your site, force http/2 to increase speed to under 200ms.
 
I use WP Rocket and the rocket-nginx config along with http/2, nginx PHP-FPM and redis object cache. No issues with performance and get good pingdom, google page speed insights and gtmetrix scores. I suggest this setup :).

Lookup time: 0.012
Connect time: 0.013
SSL handshake time: 0.206
Pre-Transfer time: 0.206
Redirect time: 0.000
Start transfer time: 0.265

Total time: 0.272
 
Back
Top