Solving Java Memory Leaks

One of the more important aspects of the Java Virtual Machine (JVM) is it’s managed memory subsystem. It’s an amazing piece of technology in that it allows developers to allocate a seemingly infinite amount of memory. The reality is that under the covers, the JVM is working on reclaiming all memory that is no longer in use. If the JVM is unable to recover memory, our application will fail with a dreaded OutOfMemoryError.

This workshop will cover several common scenarios that can cause the JVM to fail with an OutOfMemoryError. We’ll explore tooling and methods that can be used to diagnose the cause of an OutOfMemoryError. Finally, this is a workshop meaning you’ll go toe to toe with several applications that are failing with an OutOfMemoryError. Topics that will be covered include:

  1. Overview of Java heap
  2. ⁠Allocations in Java heap
  3. GC basics with Mark and Sweep
  4. ⁠Normal life cycle of a Java object
  5. ⁠Common causes of OutOfMemoryError
  6. ⁠Anatomy of a memory leak
  7. ⁠Tools for detecting memory leaks

What you’ll learn and how you can apply it

  • Identify the difference between memory leaks in native, class loader and Java heap
  • Common causes of memory leaks in Java heap
  • The role of the Garbage collector in memory leaks
  • Anatomy of a memory leak
  • Common causes of memory leaks
  • Recipes and tools to characterize memory leaks

This course is for you because…

  • You are a Java developer looking to broaden your skills
  • You are looking for better ways to solve OutOfMemoryErrors
Prerequisites
  • Java developers, operations and testers with a least 1 years experience with java
Course Set-up

Please install the following on your system:

Your Instructor


Kirk Pepperdine
Kirk Pepperdine

Kirk Pepperdine is a distinguished Java Champion and performance expert, widely recognized for his expertise in Java performance tuning. He is the author of Censum, a renowned tool for analyzing Java garbage collection. Currently, Kirk is part of the Microsoft team, where he continues to lead efforts in optimizing Java applications.


Kirk is also a co-founder of JCrete, a well-regarded unconference that brings together Java experts from around the world. He regularly shares his deep knowledge through articles, blogs, and speaking engagements at major industry events. His dedication to improving Java performance and his contributions to the Java community have established him as a leading authority in the field.


Course Curriculum


  0. Preamble
Available in days
days after you enroll
  7. Q&A and Open Discussion
Available in days
days after you enroll

Frequently Asked Questions


How long do I have access to a fully paid 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. Furthermore, if we move to another platform, we will offer you a free transfer of your account for all the courses that you have purchased.
Can I pay via PayPal?
Yes, you can for outright purchases, but not for recurring payments such as paying by installments.
Can I get back the EU VAT?
Absolutely. First off, be sure to enter the VAT number in the appropriate field during the payment process. Then contact Teachable and ask them to reimburse you the VAT.
May I share my login details with my colleagues?
Unfortunately not. The terms of usage are for a single license. Teachable tracks your progress through the curriculum, so you won't know how much you have watched. We offer discounts on bulk licenses by one company. Please contact us for bulk licensing.
May we use the course for running in-house courses?
You may, as long as each of the students in the class has a valid license for that course. For example, some companies run lunch time Design Patterns study groups using our material. This is an effective way to learn. Please contact us for bulk licensing.
What if I am unhappy with the course?
We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 14 days to tell us what you are unhappy about, and we will give you a full refund and deregister you from the course.
When does the course start and finish?
The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish. We do recommend putting time aside and setting goals to complete the course.
Can I watch the course offline during my commute?
Teachable have an iOS app that lets you watch offline. Android is not supported unfortunately.

Get started now!