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)

Logging frameworks and concepts

There are lots of logging frameworks and this is probably one challenge integrators have, since the more you integrate libraries, the more you will need to ensure loggers are consistent and potentially go to the same output. However, they all share the same basic concepts, which are important to understand to know how to properly use loggers and how they can impact the application performance in a bad way if you don't take care of their usages.

These concepts can be differently named depending on the framework, but to identify them, we will use the JUL names in this book:

  • Logger
  • Logger Factory
  • LogRecord
  • Handler
  • Filter
  • Formatter
  • Level


The logger is the entry point of the logging...