What is this?
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.
About Scott, the author
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
Java Security
,Java Threads
andJini in a Nutshell
titles.
Oreilly
About the book
We are going to disucss the 2nd edition of the book. This edition was published in Feburary 2020. The book index is as follow:
Table of Contents
Let's see the index of the book highlights:
- Introduction
- A breif Outline
- Platformas and Conventions
- The Complete Performance Story
- Summary
- An approach to performance testing
- Test a Real Application
- Understand Throughput, Batching, and Response Time
- Understand Variablitiy
- Test Early, Test Often
- Benchmark Examples
- Summary
- A Java Performance Toolbox
- Operating System Tools and Analysis
- Java Monitoring tools
- Profiling Tools
- Java Flight Recorder
- Summary
- Working with the JIT Compiler
- JIT Overview
- Tiered Compilation
- Common Compiler Flags
- Advanced Compiler Flags
- The Compilation Trade-offs
- The GrallVM
- Precompilation
- Summary
- An Introduction to Garbage Collection
- Garbage Collection Overview
- Basic GC Tuning
- GC Tools
- Summary
- Garbage Collection Algorithms
- Understanding the Throughput Collector
- Understanding the G1 Garbage Collector
- Understanding the CMS Collector
- Advanced Tuning
- Experimental GC Algorithms
- Summary
- Heap Memory Best Practices
- Heap Analysis
- Using Less Memory
- Object Life-Cycle Management
- Summary
- Native Memory Best Practices
- Footprint
- JVM Tunings for the Operating System
- Summary
- Threading and Synchronization Performance
- Threading and Hardware
- Thread Pools and ThreadPoolExectures
- The ForkJoinPool
- Thread Synchronization
- JVM Thread Tunings
- Monitoring Threads and Locks
- Summary
- Java Servers
- Java NIO Overview
- Server Containers
- Asynchronous Outbound Calls
- Json Processing
- Summary
- Database Performance Best Practices
- Sample Database
- JDBC
- JPA
- Spring Data
- Summary
- Java SE API Tips
- Strings
- Buffered I/O
- Classloading
- Random Numbers
- Java Native Interface
- Exceptions
- Logging
- Java Collections API
- Lambdas and Anonymous Classes
- Stream and Filter Performance
- Object Serilaization
- Summary
✋Further notes
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...
🐒take a tip
Work smart AND hard
Top comments (0)