Book Image

Java 9 High Performance

By : Mayur Ramgir, Nick Samoylov
Book Image

Java 9 High Performance

By: Mayur Ramgir, Nick Samoylov

Overview of this book

Finally, a book that focuses on the practicalities rather than theory of Java application performance tuning. This book will be your one-stop guide to optimize the performance of your Java applications. We will begin by understanding the new features and APIs of Java 9. You will then be taught the practicalities of Java application performance tuning, how to make the best use of garbage collector, and find out how to optimize code with microbenchmarking. Moving ahead, you will be introduced to multithreading and learning about concurrent programming with Java 9 to build highly concurrent and efficient applications. You will learn how to fine tune your Java code for best results. You will discover techniques on how to benchmark performance and reduce various bottlenecks in your applications. We'll also cover best practices of Java programming that will help you improve the quality of your codebase. By the end of the book, you will be armed with the knowledge to build and deploy efficient, scalable, and concurrent applications in Java.
Table of Contents (11 chapters)

Performance checklist

Before we begin with this chapter, let's first understand if we really have a performance issue with our application. How would you define a performance issue? To answer this question, you need to have a blueprint, which will be used as a base to measure performance. So, let’s learn how to create this blueprint (or in other words, checklist) so we can understand if we really have a performance issue or not.

The first step in creating a performance checklist is to draft our objectives clearly. Let's explore this further:

  1. Specify the acceptable response time based on the intended use of our application, such as the target user, target platform, and so on. For example, for an e-commerce application 3 seconds to 5 seconds processing time may be acceptable, but the same may be disastrous for an investment portal.
  2. Consider scaling expectations...