In this articles Series, I am going to summarize the main points of the incredible book "Java Perfroamcne" by Scott Oaks.
This is a great book if you are interested in optimizing your java application and/or want to dig deeper into how java works and how to benchmark and profile your java applicatoin.
We are going to discuss each chapter in a separate part of the article.
This article is for people who want to take a quick summary for the book and/or want to get quick information of how to think in java performance without the need to read all the book.
Scott Oaks is a Java Technologist at Sun Microsystems, where he has worked since 1987. While at Sun, he has specialized in many disparate technologies, from the SunOS kernel to network programming and RPCs. Since 1995, he's focused primarily on Java and bringing Java technology to end-users. Scott also authored O'Reilly's
Jini in a Nutshelltitles.
We are going to disucss the 2nd edition of the book. This edition was published in Feburary 2020. The book index is as follow:
Let's see the index of the book highlights:
- A breif Outline
- Platformas and Conventions
- The Complete Performance Story
- An approach to performance testing
- Test a Real Application
- Understand Throughput, Batching, and Response Time
- Understand Variablitiy
- Test Early, Test Often
- Benchmark Examples
- A Java Performance Toolbox
- Operating System Tools and Analysis
- Java Monitoring tools
- Profiling Tools
- Java Flight Recorder
- Working with the JIT Compiler
- JIT Overview
- Tiered Compilation
- Common Compiler Flags
- Advanced Compiler Flags
- The Compilation Trade-offs
- The GrallVM
- An Introduction to Garbage Collection
- Garbage Collection Overview
- Basic GC Tuning
- GC Tools
- Garbage Collection Algorithms
- Understanding the Throughput Collector
- Understanding the G1 Garbage Collector
- Understanding the CMS Collector
- Advanced Tuning
- Experimental GC Algorithms
- Heap Memory Best Practices
- Heap Analysis
- Using Less Memory
- Object Life-Cycle Management
- Native Memory Best Practices
- JVM Tunings for the Operating System
- Threading and Synchronization Performance
- Threading and Hardware
- Thread Pools and ThreadPoolExectures
- The ForkJoinPool
- Thread Synchronization
- JVM Thread Tunings
- Monitoring Threads and Locks
- Java Servers
- Java NIO Overview
- Server Containers
- Asynchronous Outbound Calls
- Json Processing
- Database Performance Best Practices
- Sample Database
- Spring Data
- Java SE API Tips
- Buffered I/O
- Random Numbers
- Java Native Interface
- Java Collections API
- Lambdas and Anonymous Classes
- Stream and Filter Performance
- Object Serilaization
I want to mention that I am adding each chapter after finishing reading it, so it may take sometime till finishing the 12 chapters in the article.
If you have any suggestions and/or notes please mention them to enhance the article.
As soon as I wrote a chapter, I will update this article to include it as a following part.
see you there...
Work smart AND hard