Book description
Java® Performance Companion shows how to systematically and proactively improve Java performance with today’s advanced multicore hardware and complex operating system environments.
The authors, who are all leading Java performance and Java HotSpot VM experts, help you improve performance by using modern software engineering practices, avoiding common mistakes, and applying tips and tricks gleaned from years of real-world experience.
Picking up where Charlie Hunt and Binu John’s classic Java Performance left off, this book provides unprecedented detail on two powerful Java platform innovations: the Garbage First (G1) garbage collector and the HotSpot VM Serviceability Agent.
Coverage includes
Leveraging G1 to overcome limitations in parallel, serial, and CMS garbage collection
Understanding each stage of G1 GC collections, both young and old
Getting under the hood with G1 and efficiently fine-tuning it for your application
Identifying potential optimizations, interpreting experimental results, and taking action
Exploring the internals of the HotSpot VM
Using HotSpot VM Serviceability Agent to analyze, triage, and resolve diverse HotSpot VM issues
Troubleshooting out of memory errors, Java level deadlocks, and HotSpot VM crashes
Extending the Serviceability Agent, and using the Plugin for VisualVM
Mastering useful HotSpot VM command line options not covered in Java™ Performance
Java® Performance Companion can help you squeeze maximum performance and value from Java with JDK 8 or 9–for any application, in any environment.
Register your product at informit.com/register for convenient access to downloads, updates, and corrections as they become available.
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Contents
- Preface
- Acknowledgments
- About the Authors
- 1. Garbage First Overview
-
2. Garbage First Garbage Collector in Depth
- Background
- Garbage Collection in G1
- The Young Generation
- A Young Collection Pause
- Object Aging and the Old Generation
- Humongous Regions
- A Mixed Collection Pause
- Collection Sets and Their Importance
- Remembered Sets and Their Importance
- Concurrent Marking in G1 GC
- Stages of Concurrent Marking
- Evacuation Failures and Full Collection
- References
- 3. Garbage First Garbage Collector Performance Tuning
-
4. The Serviceability Agent
- What Is the Serviceability Agent?
- Why Do We Need the SA?
- SA Components
- SA Binaries in the JDK
- JDK Versions with Complete SA Binaries
- How the SA Understands HotSpot VM Data Structures
- SA Version Matching
- The Serviceability Agent Debugging Tools
- Core Dump or Crash Dump Files
- Debugging Transported Core Files
- System Properties for the Serviceability Agent
- Environment Variables for the Serviceability Agent
- JDI Implementation
- Extending Serviceability Agent Tools
- Serviceability Agent Plugin for VisualVM
- Troubleshooting Problems Using the SA
- Appendix: Additional HotSpot VM Command-Line Options of Interest
- Index
- Code Snippets
Product information
- Title: Java® Performance Companion
- Author(s):
- Release date: April 2016
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133796896
You might also like
book
Java™ Performance
“The definitive master class in performance tuning Java applications…if you love all the gory details, this …
book
Panic! UNIX® System Crash Dump Analysis
Designed as an introduction to UNIX system crash dump analysis, this is the first book to …
article
Why the Power of Technology Rarely Goes to the People
Throughout history, the advantages and costs of technological innovations have been unevenly distributed between the powerful …
article
Why So Many Data Science Projects Fail to Deliver
Many companies are unable to consistently gain business value from their investments in big data, artificial …