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.