This course covers all aspects of garbage collection in Java, including how memory is split into generations and managed and how the different collectors do their job. We also cover the classes you can use to interact with the garbage collection, such as Soft, Weak, and PhantomReference.
This course covers all aspects of garbage collection in Java, including how memory is split into generations and managed and how the different collectors do their job. We also cover the classes you can use to interact with the garbage collection, such as Soft, Weak, and PhantomReference.
Garbage Collection (GC) is a fundamental part of Java. Understanding how GC works is core to understanding how the Java Virtual Machine (JVM) works and will help you write better applications and to improve the performance of those applications. This course will look at all aspects of garbage collection, including looking at what 'young' and 'old' generations are, how the JVM moves objects between eden and survivor spaces, how memory is promoted into the 'old' generation, how different garbage collectors work, and how they affect the running of your application. We will also look at 'card tables' and how they help manage memory in the old generation. We will examine each of the garbage collectors including the serial and parallel collectors; the CMS collector and the G1 collector. We cover the tools you can use to monitor GC including jstat and VisualVM. Finally we look at ways you interact with the GC through classes Such as Soft, Weak, and PhantomReference and their associated helpers ReferenceQueue and WeakHashMap.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.