NOTE: If the iptables firewall is enabled, you will not be able to connect to Tomcat from a remote computer.
6.If necessary, stop Tomcat by entering the following command:
#/usr/local/apache-tomcat/bin/shutdown.sh
The following messages appear:
Using CATALINA_BASE: | ||
Using CATALINA_HOME: | ||
Using | CATALINA_TMPDIR: | |
Using | JRE_HOME: | /usr/local/jdk |
Advanced Apache HTTP Server Features
The following section describes several widely used Apache HTTP Server features.
Using the Apache HTTP Server Benchmarking Tool
The benchmarking tool is supplied with the Apache HTTP Server and is used to benchmark your Apache HTTP Server and monitor its performance. For example, you can use the benchmarking tool to perform concurrency requests to an Apache HTTP Server. Use the following command to start using the benchmarking tool:
#/usr/ab2
Additionally, you can verify the stability of the Apache HTTP Server by running a basic stress test on the test system. The following steps show a stress test for an example system:
1.Create a file using the following path name: /srv/www/htdocs/abtest.html
2.Add the following lines to the file you created in Step 1:
<HTML>
<HEAD>
</HEAD>
<BODY DIR="LTR">
<P ALIGN=CENTER
<FONT SIZE=6>The page is used for Apache benchmarking test !</FONT> </FONT>
</P>
</BODY>
</HTML>
3.Perform a concurrency request to the test system by logging into another system and entering the following command:
# ab2
Where:
•The value of the
•The value of the
4.Monitor the access status on the test system by displaying the end of the access log file. To do this, enter the following command:
# tail
The system displays messages similar to the following:
10.101.2.28 - - [03/Feb/2007:12:49:53
18