Book Image

Apache JMeter

By : Emily H. Halili
Book Image

Apache JMeter

By: Emily H. Halili

Overview of this book

<p>A bad response time on a website can drive away visitors and prospective customers. To measure what a website can handle, there should be a way to simulate and analyze different load scenarios&acirc;&euro;&rdquo;this is where a load-testing tool like JMeter comes in. JMeter is a powerful desktop performance tool from the Apache Jakarta project, written in Java, for load-testing web pages, web applications, and other static and dynamic resources including databases, files, Servlets, Perl scripts, Java Objects, FTP Servers, and more.<br /><br />JMeter works by acting as the "client side" of an application, and measures response time. As such, it's one half of the testing arsenal; the other half consists of a tool to watch metrics on the server side, such as thread counts, CPU loads, resource usage, and memory usage. Although it can't behave like a browser to measure rich client-side logic such as JavaScripts or Applets, JMeter certainly measures the performance of the target server from the client's point of view. JMeter is able to capture test results that help you make informed decisions and benchmark your application.<br /><br />This book introduces you to JMeter (version 2.3) and test automation, providing a step-by-step guide to testing with JMeter. You will learn how to measure the performance of a website using JMeter.<br /><br />While it discusses test automation generally, the bulk of this book gives specific, vivid, and easy-to-understand walkthroughs of JMeter's testing tools showing what they can do, and when and how to use them.</p>
Table of Contents (16 chapters)

The Requirements


To be able to run JMeter, you will need at least JVM (Java Virtual Machine) 1.3 as part your computing environment. If the application you are testing requires HTTPS protocol support, then you will need to download JSSE, since 1.3 does not provide that support. Also, it does not perform as well as later Java versions. Version 1.4 or higher is the ideal JVM to run JMeter at its best.

Since JMeter is Java-based, it can run on any system that has a Java implementation—making it highly portable. As far as operating system is concerned, JMeter has been able to run on UNIX, Linux, Open VMS Alpha 7.3+, and Windows (98 or higher)—in fact on any platform that has a JVM running on it.

If you plan to recompile the JMeter source code, as you extend JMeter using the API provided in the JMeter release, you may need to use the Java compiler via some IDE, e.g. Eclipse or any other Java IDE. You may also opt to use Ant to build JMeter from source. However, there is no need for you to install...