Performance Tuning Guide > Tuning UNIX Operating Systems for Performance > Tuning Siebel eBusiness Applications for HP-UX >
Tuning the HP Apache2 Web Server for HP-UX
This section provides recommended initial settings for HP Apache2 Web server environment variables. You can further modify these settings at your discretion to optimize the performance of your Web server. The default ThreadLimit for HP Apache2 is 64, but it can be set it to a much higher number. The highest setting depends on the kernel settings. ThreadsPerChild and MaxClients are related directives.
To set the number of threads for HP Apache2
- Using a text editor, set values for parameters in the
workers.c section of the file Web_server_install /conf/httpd.conf , where Web_server_install is the root directory in which your Web server is installed. Set the parameter values as follows:
ThreadLimit
|
N
|
StartServers
|
1
|
ServerLimit
|
1
|
MaxClients
|
N
|
MinSpareThreads
|
1
|
MaxSpareThreads
|
N
|
ThreadsPerChild
|
N
|
MaxRequestsPerChild
|
0
|
where:
N = a value similar to 1.2 or 1.5 * maximum number of concurrent users (threads). The value for the applicable parameters must be greater than the number of concurrent users the Web server must support. However, setting parameter values higher than what is described here will consume additional memory unnecessarily.
NOTE: If you are not using multiplex sessions, make sure the kernel parameter max_thread_proc is set to a number greater than 2N.
- Change the values for
User and Group to a valid machine user and group:
- Set
MaxKeepAliveRequests to 0.
|