fascynacja
fascynacja

Reputation: 2888

OpenJDK JVM memory layout (Metaspace, Code Cache, Heap, Non-Heap, Runtime Constant Pool)

This question might seem like a duplicate or like a too much open question, but after long research I decided to ask it anyway.

I am looking for an updated (2023) overview of OpenJDK JVM Memory Layout, containing all important elements of the memory. I would like to be 100% sure how is the memory organized and where is the place of elements like

When I try to search on stack overflow the answers are either old (still mentioning PermGen) or confusing, (saying some elements might be on heap and later answers say the opposite), referencing links which do not exist any longer. Same goes with google image search. I see so many images which are all different and never contain all elements, or show them in different places:

enter image description here

Is there one comprehensive image/diagram which will show how all memory elements are nested together in the memory? I would like to eventually endup with something like this: enter image description here

I wish to see the elements nicely presented. ( I can create the diagram myself of course with appropriate source of information)

Upvotes: 1

Views: 429

Answers (0)

Related Questions