HP OSMS: Tomcat Sizing Guide for HP ProLiant c-Class Blade Servers HP Part Number: 5992-4859 Published: May 2008 Edition: 1.
© Copyright 2008 Hewlett-Packard Development Company, L.P. Legal Notice Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. The information contained herein is subject to change without notice.
Table of Contents Introduction............................................................................................................................................9 Executive Summary...........................................................................................................................9 Intended Audience............................................................................................................................9 Scope and Purpose......................................
List of Figures 1 2 3 4 5 6 7 8 9 10 11 12 Tomcat Successful Installation Verification...................................................................................13 Static Web Page Test Results for the HP ProLiant BL460c Server - Requests per Second............16 Static Web Page Test Results for the HP ProLiant BL460c Server - Average Response Time.......16 Static Web Page Test Results for the HP ProLiant BL465c Server - Requests per Second............
List of Tables 1 2 3 4 5 6 7 8 Test Hardware Environment.........................................................................................................12 JVM Configuration .......................................................................................................................13 Tomcat Configuration....................................................................................................................14 Main ab Options.....................................................
Introduction HP Open Source Middleware Stacks (OSMS) offer building block applications, such as the Web Server; technical blueprints, and documents such as this Tomcat Sizing Guide which describes the maximum workload that HP ProLiant c-Class Blade Servers are capable of supporting; and consulting services to speed the successful implementation of an open source strategy.
• • • 10 In Australia/New Zealand: +61 3 9272 2895 In Asia Pacific: +8522 599 7777 In Europe/Africa/Middle East: +41 22 780 81 11
Typographic Conventions This document uses the following typographic conventions. Command ComputerOut Ctrl-x ENVIRONVAR [ERRORNAME] Key Term UserInput VARIABLE \ (continuation character) ... | A command name or qualified command phrase. Text displayed by the computer. A key sequence. A sequence such as Ctrl-x indicates that you must hold down the key labeled Ctrl while you press another key or button. The name of an environment variable, for example, PATH.
Hardware Test Environment This benchmark was performed within an HP BladeSystem c-Class blade enclosure with enhanced backplane using C-GbE2 Network interconnect switches. Table 1 lists the specifications of the hardware test environment. Table 1 Test Hardware Environment Hardware BL460c BL465c BL480c CPU (2) Quad-Core Intel® Xeon® processor X5365 (3.0 GHz/4MB L2 cache per core) (2) Dual-Core AMD (2) Quad-Core Intel® Xeon® Opteron™ processor 2218 (2.6 processor X5365 (3.
Figure 1 Tomcat Successful Installation Verification NOTE: If the iptables firewall is enabled in the system, the Tomcat server can not be accessed from other machines. 4. If necessary, stop Tomcat by entering the following command: # /usr/local/apache-tomcat/bin/shutdown.
Setting Tomcat Connector Attributes Edit the /usr/local/apache-tomcat/conf/server.xml file and add the attributes listed in Table 3 to the Connector element. The following example shows the element in the xml file after the connector attributes are added.
For more information about ab, see the following web site: http://httpd.apache.org/docs/2.0/programs/ab.html Benchmark Results In the static web page testing, several web pages were used with different sizes that varied from 5KB to 200KB. For each web page, ab was run with a varying number of concurrent connections and total requests to determine the maximum requests per second and the maximum response time for 80% of the fastest requests.
Figure 2 Static Web Page Test Results for the HP ProLiant BL460c Server - Requests per Second Figure 3 Static Web Page Test Results for the HP ProLiant BL460c Server - Average Response Time HP Proliant BL465c Server The HP ProLiant BL465c server is a two-way server blade designed for maximum compute density and power efficiencies. The small form factor accommodates two blades in each slot allowing for 16 servers in a standard 6u enclosure.
Table 6 Static Web Page Test Results for the HP ProLiant BL465c Server (continued) User Connections 5K 30K 80K 200K req/sec resp time req/sec resp time req/sec resp time req/sec resp time 1500 6958.18 21 3721.44 122 1405.94 1466 564.29 4101 2000 5993.03 22 3680.87 362 1370.03 1554 564.
Table 7 Static Web Page Test Results for the HP ProLiant BL480c Server User Connections 5K 30K 80K 200K req/sec resp time req/sec resp time req/sec resp time req/sec resp time 100 19446.04 5 3770.73 26 1426.77 76 572.69 187 200 18313.09 8 3768.29 54 1426.88 115 572.84 333 500 16814.04 10 3768.88 65 1425.07 461 572.37 1417 1000 15649.88 20 3766.76 320 1425.52 1010 570.90 3011 1500 14162.79 56 3768.50 339 1424.00 1616 564.46 4108 2000 13810.
JPetStore was used as the test application deployed on the Tomcat Application server. This section provides a detailed description of the test scenario for JPetStore and, how to run Apache JMeter against the test application. The benchmark data includes the number of requests the Tomcat Application server can process per second and the average response time for all requests on each ProLiant Blade server. JMeter Installation and Configuration Apache JMeter is an open source Java desktop application.
Figure 8 Application Scenario Test Environment Architecture Before performing the JPetStore installation on the Web server, verify that the following installations and configurations have been completed. • • • Tomcat has been installed on the Tomcat server node and configured correctly. MySQL has been installed and configured on the MySQL server node. Make sure that MySQL is running correctly. Download the MySQL JDBC Driver file, mysql-connector-java-5.0.4-bin.jar.
Application Scenario Configuration A JMeter test plan must be created to simulate the requests sent to the server in the scenario. There are two approaches which are generally used to create a test plan: JMeter’s Proxy and Badboy. For JMeter, see the JMeter Reference Manual located at: http://jakarta.apache.org/jmeter/usermanual/index.html For JMeter's Proxy and recording tests, see the JMeter tutorial located at: http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.
Figure 10 JMeter Summary Report Benchmark Results Table 8 shows the requests per second and average response time of the scenario described in the previous section. The response time is defined as the time it takes the Tomcat server to send the object of an HTTP request back to the client. The requests per second is the average request number Tomcat is capable of handling (per second) in the particular scenario.
Figure 11 JMeter Application Scenario Test Results – Requests per Second Figure 12 JMeter Application Scenario Test Results – Response Time Summary The performance of the Tomcat Application server is impacted by several factors such as network throughput, system processing capability, concurrent user connections, and so on. The data shown in this document were obtained under the precondition that network throughput was stable.
Resources For additional information on the hardware and software used in the Tomcat tests, see the following websites: HP Open Source Middleware Stacks (OSMS) http://h71028.www7.hp.com/enterprise/cache/321150-0-0-0-121.html HP BladeSystem http://www.hp.com/go/bladesystem/ http://h18004.www1.hp.com/products/blades/components/bladeservers.html Apache Tomcat http://tomcat.apache.org/index.html Apache JMeter http://jakarta.apache.