Java Application Performance
300 pages
English
PDF
4.5

Java Application Performance

Оптимизация, профилирование и ускорение кода на Java

Author:

Year:

Summary:

The book "Java Application Performance" is a comprehensive guide for developers who want to learn how to create fast, efficient, and scalable programs in Java. The author, Alexey Belov, shares practical techniques and proven approaches to diagnosing and eliminating performance bottlenecks.

The book covers key aspects of Java performance:

  • Profiling and Benchmarking: learn to use modern tools (JProfiler, VisualVM, JMH) for precise measurement of execution time, CPU load, and memory usage.
  • Memory Management and Garbage Collection (GC): understand the mechanisms of G1, ZGC, Shenandoah, configure heap sizes, minimize GC pauses, and avoid leaks.
  • Multithreading and Concurrency: master efficient use of thread pools, Fork/Join, CompletableFuture, and lock-free synchronization (Lock-Free, CAS).
  • Code Optimization: learn how to write code that the JIT compiler (C1/C2) can optimize to the maximum, and how to avoid expensive operations (allocations, reflection, exceptions).
  • JVM and Operating System Tuning: get practical advice on selecting startup flags, tuning the OS kernel, and containerization (Docker/Kubernetes).
  • Working with Databases, Network, and I/O: optimize JDBC queries, use asynchronous programming (Netty, Virtual Threads).

Recommendations