Chapter 13 Java Memory Management
Overview
- What is Memory Management?
- Java Memory Model
Stack and Heap: Understanding Memory Allocation
- Stack Memory in Java
- Heap Memory in Java
- Difference Between Stack and Heap Memory
Garbage Collection in Java
- Understanding Garbage Collection
- How Does Garbage Collection Work?
- Garbage Collectors in Java
Memory Leaks in Java
- What are Memory Leaks?
- Causes of Memory Leaks
- Detecting and Fixing Memory Leaks
Java References
- Strong References
- Soft References
- Weak References
- Phantom References
Memory Profiling in Java
- Memory Profiling Tools
- How to Profile Memory?
- Interpreting Profiling Results
Advanced Memory Profiling
- Monitoring Garbage Collection
- Heap Dump Analysis
- Profiling Large Applications
- Profiling Microservices and Distributed Systems
- Performance Tuning Based on Memory Profiling Results
- Case Study: Solving Real-World Memory Leak