You can force a heavier load on the Apache HTTP Server by increasing the number of concurrency requests with the -coption, and by prolonging the testing round by increasing the number of requests with the -noption.

NOTE: If you encounter the following error:

socket: Too many open files (24)

You can correct the error by entering the following:

#ulimit -n <NUMBER>

This command increases the limit on the number of open files only for the current shell session. The increased limit is applicable to the newly launched commands on that shell after the change. Commands that you launched previously continue to use the previous limit.

Apache HTTP Server Status and Information

You can obtain various pieces of information regarding your Apache HTTP Server by configuring the mod_status and mod_info module requests within the httpd.conf configuration file. The mod_status module is configured using the server-statusrequest and the mod_info module is configured using the server-inforequest. For example, you can find out the current hosts and requests being processed, whether the server was started or restarted, and basic server configuration information. These two functions help you monitor your Apache HTTP Server.

Configuring and Using the Modules

Use the following steps to enable these two modules to collect and display information.

1.Edit the /etc/apache2/mod_status.conf file and add the following lines:

<IfModule mod_status.c> <Location /server-status>

SetHandler server-status Order deny,allow

Deny from all

Allow from YOUR_WEB_BROWSER_IP </Location>

</IfModule>

2.Edit the /etc/apache2/mod_info.conf file and add the following lines:

<IfModule mod_info.c> <Location /server-info>

SetHandler server-info Order deny,allow Deny from all

Allow from YOUR_WEB_BROWSER_IP </Location>

</IfModule>

3.Modify the /etc/sysconfig/apache2 file by appending the following to the

APACHE_MODULES definition: info status

The APACHE_MODULES definition should now look like the following:

APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 info status"

4.Restart the Apache HTTP Server for the changes take effect.

Installing, Configuring, and Managing Web Server Middleware Stack Components 19

Page 19
Image 19
HP 5991-5565 manual Apache Http Server Status and Information, You can correct the error by entering the following