Java Application Performance: Optimization, Profiling, and Testing
Практическое руководство по ускорению и масштабированию Java-систем
简介:
The book "Java Application Performance" is a practical guide for developers who want to write fast, efficient, and scalable Java code. If you encounter slow application performance, memory leaks, or high resource consumption, this book will help you systematically diagnose and eliminate bottlenecks.
The author, Alexey Petrov, is an experienced Java engineer with many years of experience developing high-load systems. In the book, he shares proven methodologies and real-world cases from practice.
What you will learn from the book:
- How JVM works: garbage collection, compilation, class loading, and impact on performance.
- Basics of profiling: using JProfiler, VisualVM, YourKit, and built-in JDK utilities.
- Memory optimization: GC tuning, avoiding leaks, working with large objects.
- Multithreading and concurrency: synchronization, thread pools, lock-free structures.
- Code optimization: efficient algorithms, working with collections, I/O, databases.
- Performance testing: benchmarking (JMH), load testing, result analysis.
- JVM tuning: flags, heap parameters, GC selection (G1, ZGC, Shenandoah).
- Log collection and analysis: GC logs, production monitoring, alerts.
Who this book is for:
- Junior and Middle Java developers looking to deepen their knowledge.