View Single Post
Old 10-31-2019, 09:44 PM  
iceboi
Confirmed User
 
Industry Role:
Join Date: Oct 2017
Posts: 302
In my experience,it's safe to turn off keepalive if your site isn't loading tons of stuff dynamically(API requests). If your frontend is mostly static, then keeping the connection to the server is overkill and will use alot of memory, especially with Apache.

If you still want keepalive on, set the timeout value lower to reduce the number of simultaneous connections to your server.But a low timeout would negate the reason why keepalive is beneficial so it's best to turn it off.

Eg: if you set the timeout to 30 seconds, it would mean that if the user spends more than 30 seconds on your page,he wouldn't have benefited from keepalive but having it on would use extra resources on your server...even though the user doesn't benefit.
iceboi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote