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.
Agenda
- 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
Prerequisites:
- Solid knowledge of the Java language.
- Prior practical experience tuning a Java application performance is recommended.
Technical Requirements
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. Next to the video you can download the code zipped together with the git history, so you can explore my commits if you get lost.
To run the project you will need a Java 8+ SDK installed, a decent IDE, and access to GitHub and Maven Central.
Course Curriculum
Trainer: Victor Rentea
Victor Rentea is a Java Champion, Associate Professor and Technical Trainer writing code for over two decades in many languages.
He is training developers since 2012, having developed an extensive curriculum that covers most of the software engineering best practices and typical Java-stack development. You can read dozens of recommendations from the developers he trained on LinkedIn and on victorrentea.ro.
Victor is best known for the energy of his talks, many ranked among the best at their conference. You can expect a similar style here, explaining complex concepts in simple, easy-to-remember terms.
Get Access
Frequently Asked Questions
How long do I have access to the course?
How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like, across any and all devices you own.
Can I get an invoice for my company?
Payments are handled by Onelink, Stripe's reseller, which emails you the receipt. For a company invoice, contact Onelink starting from that receipt email.
I bought this course on Teachable. Do I pay again?
No. Every Teachable purchase was carried over: get your access link with the email you used there.
