Book Image

Performance Testing with JMeter 3 - Third Edition

By : Bayo Erinle
Book Image

Performance Testing with JMeter 3 - Third Edition

By: Bayo Erinle

Overview of this book

JMeter is a Java application designed to load and test performance for web application. JMeter extends to improve the functioning of various other static and dynamic resources. This book is a great starting point to learn about JMeter. It covers the new features introduced with JMeter 3 and enables you to dive deep into the new techniques needed for measuring your website performance. The book starts with the basics of performance testing and guides you through recording your first test scenario, before diving deeper into JMeter. You will also learn how to configure JMeter and browsers to help record test plans. Moving on, you will learn how to capture form submission in JMeter, dive into managing sessions with JMeter and see how to leverage some of the components provided by JMeter to handle web application HTTP sessions. You will also learn how JMeter can help monitor tests in real-time. Further, you will go in depth into distributed testing and see how to leverage the capabilities of JMeter to accomplish this. You will get acquainted with some tips and best practices with regard to performance testing. By the end of the book, you will have learned how to take full advantage of the real power behind Apache JMeter.
Table of Contents (17 chapters)
Title Page
About the Author
About the Reviewers
Customer Feedback

Creating an InfluxDB database for our test plan

In order to use InfluxDB for storing the metrics from our test plan, we first need to create a database to use. InfluxDB comes with both client Command Line Interface (CLI) and an HTTP API for interacting with it. We will be using the HTTP API to interact with InfluxDB. If you wish to use the CLI, refer to the documentation at

To create a database named excilys on our local installation of InfluxDB, follow the mentioned steps:

  1. Open up a Terminal window and issue the following command:

This assumes you have curl installed on your machine. If you don't, please download and install curl. See

curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE excilys"
  1. If successful, you should be returned an HTTP status code 200, similar to the following output:
HTTP/1.1 200 OK
Connection: close
Content-Type: application/json
Request-Id: 8171b794-52d6-11e7-8bd1...