- Plesk for Linux
How to adjust and optimize the server performance?
Note: optimization of server performance is an administrative task and should be performed by a server administrator.
Note: that server performance tuning is a complex task and depends on server resources, traffic, etc. Below option are only recommendations.
Review code of the websites in order to optimize it
Use PHP 7.x for domains:
For Service Plan:
Open Service Plans > exampleplan > PHP Settings.
Change PHP Handler version.
Tune opcache feature for PHP.
Tune Apache web server. Here are common settings to tweak:
Timeout – This setting determines how long Apache will wait for a visitor to send a request.
KeepAlive – When “KeepAlive” is set to “On”, Apache uses a single connection to transfer all the files to load a page. This saves time in establishing a new connection for each file.
MaxKeepAliveRequests – This setting determines how many files can be transferred via a KeepAlive connection. Unless there’s a reason not to (like resource constraints), this setting can be set to “0”, that is, “unlimited”.
KeepAliveTimeout – This setting makes sure that a KeepAlive connection is not abused. It says how long should Apache wait for a new request before it resets the connection.
MaxClients – This setting tells Apache how many visitors can be served simultaneously.