Tuning the web server
Use HTTP Server settings to optimize web servers, such as Apache Server or IBM HTTP Server (IHS).
HTTP Server settings
The following settings provide optimum performance in IBM test environments. However, your environment might require different settings. Customize the settings to your environment requirements. For more information on tuning web servers, see your web server documentation.
Configure the following options and values by editing the httpd.conf
configuration file:
- Enable the Multi-Processing Module (MPM).
- Apply the following starting parameters for your testing. The parameters are dimensioned for a
server configuration of 32 CPU and 240 GB RAM. Calculate your own values based on your server
configuration. Note: Values that are based on incorrect calculations can cause memory leakages.
<IfModule mpm_event_module> StartServers 4 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 64 MaxRequestWorkers 128 MaxConnectionsPerChild 100 </IfModule>
- Set the following KeepAlive timeouts:
- KeepAlive On
- KeepAliveTimeout 5
- MaxKeepAliveRequests 100
- Timeout 600
- Proxy timeout 1800
Note: Proxy server configuration is outside the scope of this documentation.
Enabling CORS on a web server
If you are using multiple domains in your environment, configure your web server for Cross-Origin Resource Sharing (CORS).
For example, on web servers such as Apache, set the following headers in /etc/httpd/conf.d/virtual.conf:
Access-Control-Allow-Origin: <TRIRIGA server domain name>
Access-Control-Allow-Credentials: true