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)

Understanding Garbage Collection and Making Use of It

Everything we do, we leave behind a mess that we never want to clean. And that is where we rely on someone to do the job for us. Imagine your house without someone cleaning it every day. Yes, you got it. It may soon look like a garbage truck and will not leave any room for humans to survive.

The same is also true for software development. Imagine the world without a cleaner called a garbage collector. You have developed an awesome software, which is running with all its grace on the most advanced server with a lot of RAM and a large number of CPU cores. In all its glory, it is helping a lot of users get the most out of their software investment. At its peak, inside the application server, your code is loading a lot of classes and creating a lot of objects to support the complex operations your algorithm is supposed to perform...