: More apache processes = higher TTFB = lower money? why? I just upgraded my server from 8 GB ram to 16 GB ram. I then adjusted my apache settings to serve more users at a time including
I just upgraded my server from 8 GB ram to 16 GB ram.
I then adjusted my apache settings to serve more users at a time including mobile. Yes I'm still on prefork mode because I created a module and I'm using PHP with mod_ruid2.
My settings before were:
Timeout 30
StartServers 25
MinSpareServers 25
MaxSpareServers 25
MinSpareServers 25
MaxSpareServers 25
ServerLimit 25
MaxClients 25
MaxRequestsPerChild 10000
I now set them to the following to try to accomodate more users as well as occasional bots who manage to use up 2 server slots to download files:
Timeout 60
StartServers 100
MinSpareServers 100
MaxSpareServers 100
MinSpareServers 100
MaxSpareServers 100
ServerLimit 100
MaxClients 100
MaxRequestsPerChild 5000
I then tested my site with the exact same settings in webpagetest.org before and after the memory change. The new settings resulted in my TTFB being over 210 ms. The old settings resulted in my TTFB being between 80 and 110 ms.
I'm just curious as to why there's such a large difference and if there is any way I can reduce the TTFB without reducing the number of processes? or should I just reduce the processes and thus make some users wait forever to connect to the site?
Or could there be better settings I can use in my apache config?
More posts by @Harper822
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.