Learn how to use allocation profiling to solve a runtime issue in a Java application. The post guides through cloning a GitHub repository, running the application, and diagnosing an OutOfMemoryError. It details steps for using debuggers, monitoring CPU and memory usage, and employing allocation profiling to identify memory leaks. Finally, it covers fixing code by implementing missing equals() and hashcode() methods, ensuring the application runs smoothly.

10m read timeFrom foojay.io
Post cover image
Table of contents
Author(s)The problemThe debuggerMonitor resources' usageAllocation profilingAnalyze data flowConditional breakpointsInspect the codeOverride methodsCheck the fixSummaryJakarta EE 11: Beyond the Era of Java EE

Sort: