当前位置:网站首页>Learn the memory management of JVM 03 - Method area and meta space of JVM
Learn the memory management of JVM 03 - Method area and meta space of JVM
2022-07-05 12:15:00 【The king of early rising】
Catalog
What is the method area ?
Used to store... That has been loaded by the virtual machine Type information 、 Constant 、 Static variables 、 Real time compiler compiled code cache and other data .《Java Virtual machine specification 》 Zhongba Method area Described as a logical part of the heap , But it has an alias called “ Non heap ” The purpose is to Java Heap differentiation .
Notice that there is one important place here :《Java Virtual machine specification 》 Zhongba Method area Described as a logical part of the heap , this sentence , Don't be confused . Clear two points :
- Logic
- He's not a pile
Pile up , yes JVM A piece of memory in virtual machine memory , It exists physically , Will be assigned .
Method area , Is a logical part of the heap . Also means that , There is a corresponding Physical implementation .
Implementation of method area
In the early JDK
My early days here JDK The concept is JDK8 Previous .
This is the time , The implementation method area is called Forever .
This permanent generation , yes Java Part of the pile . Type information 、 Constant 、 Data in the method area such as static variables , Stored in this location .
JDK6 When ,HotSopt( A kind of JVM virtual machine ) There is a plan to give up the permanent generation , stay JDK7, Realize the transfer of some data . To JDK8, Completely abandoned the concept of permanent generation .
JDK8
that , Replace the permanent generation . His name is Meta space .
Meta space
This meta space is quite special , It is Local memory A piece of . be not in JVM In the virtual machine .
But be careful : Not everything in the method area is in the meta space .
Constant pool ( Including runtime constant pool and string constant pool ) and Static variables are still in the heap .
Type information ( Metadata information ) And other information is moved to the meta space .
That is, meta space mainly stores type information .
All right. , That's all for the canto .
Keep early hours , take care . King of early rising , I wish you good luck .
边栏推荐
- Troubleshooting of high memory usage of redis in a production environment
- Read and understand the rendering mechanism and principle of flutter's three trees
- Error modulenotfounderror: no module named 'cv2 aruco‘
- 自动化测试生命周期
- Mongodb replica set
- ACID事务理论
- Matlab struct function (structure array)
- MySQL transaction
- 语义分割实验:Unet网络/MSRC2数据集
- 1. Laravel creation project of PHP
猜你喜欢
互联网公司实习岗位选择与简易版职业发展规划
MySQL splits strings for conditional queries
Liunx prohibit Ping explain the different usage of traceroute
Automated test lifecycle
Principle of redis cluster mode
Tabbar configuration at the bottom of wechat applet
[cloud native | kubernetes] actual battle of ingress case (13)
Pytorch MLP
Uniapp + unicloud + Unipay realize wechat applet payment function
Mongodb replica set
随机推荐
Ncp1342 chip substitute pn8213 65W gallium nitride charger scheme
MySQL index - extended data
【load dataset】
Simple production of wechat applet cloud development authorization login
II. Data type
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
嵌入式软件架构设计-消息交互
Semantic segmentation experiment: UNET network /msrc2 dataset
[cloud native | kubernetes] actual battle of ingress case (13)
How can beginners learn flutter efficiently?
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
你做自动化测试为什么总是失败?
只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
Understand kotlin from the perspective of an architect
[yolov5.yaml parsing]
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
Get all stock data of big a
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment