Book Image

Java EE 8 High Performance

By : Romain Manni-Bucau
Book Image

Java EE 8 High Performance

By: Romain Manni-Bucau

Overview of this book

The ease with which we write applications has been increasing, but with this comes the need to address their performance. A balancing act between easily implementing complex applications and keeping their performance optimal is a present-day need. In this book, we explore how to achieve this crucial balance while developing and deploying applications with Java EE 8. The book starts by analyzing various Java EE specifications to identify those potentially affecting performance adversely. Then, we move on to monitoring techniques that enable us to identify performance bottlenecks and optimize performance metrics. Next, we look at techniques that help us achieve high performance: memory optimization, concurrency, multi-threading, scaling, and caching. We also look at fault tolerance solutions and the importance of logging. Lastly, you will learn to benchmark your application and also implement solutions for continuous performance evaluation. By the end of the book, you will have gained insights into various techniques and solutions that will help create high-performance applications in the Java EE 8 environment.
Table of Contents (12 chapters)

Benchmark iterations

In the previous section, we prepared all we needed to start a benchmark in an efficient way. Now we need to see how we will work during the benchmark.

The first important thing is to establish that we only deal with optimization iterations here and not evaluation ones, which are straightforward—you run the scenarios and gather the reports.


It is probably natural, but you will iterate with your optimizations. This means that you will run the same test again and again to measure the result of a change—for instance, increasing the pool size.

The direct implication of such a work structure is that you need to prepare yourself to store lots of reports in an organized way. There are many...