Java Memory Management

Go to class
Write Review

Free Online Course: Java Memory Management provided by LinkedIn Learning is a comprehensive online course, which lasts for 3-4 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Java Memory Management is taught by Matt Greencroft.

Overview
  • Learn how memory works in Java. In this hands-on course, explore fundamental concepts to help you optimize your code and quickly find and fix any memory errors that still occur.

Syllabus
  • Introduction

    • Introduction
    1. How Memory Works in Java
    • Why memory is important
    • The role of the stack
    • The role of the Heap
    2. Values and References
    • Passing variables by value
    • How objects are passed
    • The final keyword
    • Memory exercise
    • Exercise walkthrough
    3. Escaping References
    • What are escaping references?
    • An escaping references example
    • How to avoid escaping references with collections
    • Avoiding escaping references with custom objects, part 1
    • Avoiding escaping references with custom objects, part 2
    • Escaping references exercise
    • Exercise walkthrough
    4. Introduction to Garbage Collection
    • String pools
    • Garbage eligibility
    • The gc() and finalize() methods
    • Understanding what soft leaks are
    • Detecting soft leaks
    5. Generational Garbage Collection
    • Mark and sweep
    • Generational garbage collection
    • Using the Visual GC tool to view a soft leak
    • Using the Memory Analyzer tool
    • PermGen and the Metaspace
    6. Tuning the Virtual Machine
    • Heap size
    • PermGen size
    • Garbage collection and generation sizes
    • Generating heap dumps
    • Choosing a garbage collector
    7. Hunting for a Memory Leak
    • Introducing the example application
    • Monitoring the application
    • Fixing a memory leak
    Conclusion
    • Course summary