Java jvm1.8 heap memory model: young generation and old generation metadata area

insert image description here

As can be seen from the above figure, the memory model of jdk1.8 consists of two parts, the young generation + the old generation.

  • Young Generation: Eden + 2*Survivor
  • Old Generation: OldGen
  • The Perm area that changed the most in jdk1.8 was replaced with Metaspace (metadata space).
  • It should be noted that the memory space occupied by Metaspace is not in the virtual machine, but in the local memory space, which is also the biggest difference from the permanent generation of 1.7.
    insert image description here

Guess you like

Origin blog.csdn.net/a772304419/article/details/126672254