Garbage Collection is probably the best improvement to quality of life for developers coming from C/C++ to Java. However, the risk we still face is to 'forget' about a reference to an object, rendering that object impossible to evict. With complex codebases and unknown frameworks, this risk sometimes transforms into incredibly complex debugging challenges to find the memory leak or to reduce the memory footprint of our workflow.
Follow this challenging video course to understand Garbage Collector internals, how to trace and fix memory leaks and many Java memory management best practices direcly applicable to complex real-world problems. This workshop goes through a series of scenarios extracted from the most common memory issues occuring today in typical Java/Spring/JavaEE projects, highlighting various inefficient memory management practices and presenting some powerful (free) tools critical to the job.
This is the recording of a 3.5 hours live webinar that took place in May 2021.
Note: After watching the recording you can ask me any question you have via email.
- Garbage Collector Mechanics: refcount, traversing references, cycles, GC types overview
- Memory Leaks Experiments: Static, Thread Local, Session, Stack Frame, Inner Class, Closure, Cache
- Tracing Memory Leaks using visualvm and Memory Analyzer Tool
- Retained vs Shallow Size
- Best way to size your max heap
- Preemptive Memory Leak Analysis
- Reducing Memory Footprint of your Code
What to expect?
The workshop is composed of a series of experiments highlighting various memory leaks and memory-inefficient coding practices. Any deeper concept we encounted will be explained via fine-tuned slides that will make it crystal clear. And of course, any questions you might have after wathing the recording are warmly welcome.
After the purchase you will get: the video recording, all the slides, and the code zipped together with Git commit history.
This training is for you if
- You are facing any kind of performance issues with your application
- You are a consultant/senior that is called to help projects in trouble
- You are eager to know more about the internals of Java Garbage Collector
- You want to lower the memory footprint of your code to avoid OutOfMemoryErrors
- Solid knowledge of the Java language.
- Prior practical experience tuning a Java application performance is recommended.
I would recommend you get yourself a black coffee and you pay close attention to the discussion, stop the recording at any moment and try to reproduce what I'm doing on your own machine. In the resources section you can find the code zipped together with the git history, so you can explore my commits if you get lost. If still can't make it work, please don't hesitate to email me!
To run the project you will need a Java 8+ SDK installed, a decent IDE, and access to GitHub and Maven Central.