Skip to Content
Java Memory Management
book

Java Memory Management

by Maaike van Putten, Dr. Seán Kennedy
November 2022
Intermediate to advanced
146 pages
3h 16m
English
Packt Publishing
Content preview from Java Memory Management

5

Zooming in on the Metaspace

In Chapter 4, we examined garbage collection in detail. We discovered that objects without a reference are eligible for garbage collection. In effect, the garbage collector marks the objects that have a connection back to the stack, annotating them as live objects. The sweep phase of the garbage collector then reclaims the memory of the objects that are not marked (the dead objects).

We also examined the various garbage collection implementations. Based on your specific criteria, an evaluation of each implementation is required.

This chapter focuses on an area known as the Metaspace. We will examine the Metaspace under the following headings:

  • JVM usage of the Metaspace
  • Class loading
  • Releasing Metaspace memory
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Concurrency in Practice

Java Concurrency in Practice

Brian Goetz, Tim Peierls, Joshua Bloch, Joseph Bowbeer, David Holmes, Doug Lea
Troubleshooting Java

Troubleshooting Java

Laurentiu Spilca
The Well-Grounded Java Developer, Second Edition

The Well-Grounded Java Developer, Second Edition

Benjamin Evans, Martijn Verburg, Jason Clark
Java Coding Problems

Java Coding Problems

Anghel Leonard

Publisher Resources

ISBN: 9781801812856Supplemental Content