Java Flight Recorder (JFR) is an integrated, low-overhead event-recording framework within the HotSpot JVM, capturing vital system events like CPU, memory, and garbage collection. This article outlines JFR's mechanisms, historical context, usage scenarios, and practical examples, illustrating its significance for performance diagnostics in production environments.
async-profiler Arguments Explained: A Practical Guide to Collecting the Right JFR Data
Choosing the correct arguments for asynchronous profiling with Java Flight Recorder (JFR) is crucial for obtaining relevant performance data. The guide highlights various profiling dimensions (CPU, memory allocation, lock contention) and explains how async-profiler effectively captures data without bias. Detailed command options, including event types and profiling duration, provide practical insights for effective usage and analysis.
The Lombok & Builder Pattern Hidden Cost
The post analyzes the performance of Lombok's @Builder annotation, highlighting its readability and efficiency benefits alongside potential memory allocation issues, particularly under high-throughput scenarios. It explains how the use of @Singular increases allocations, complicating garbage collection, and emphasizes the need for careful profiling to optimize performance based on specific use cases.
