当前位置:网站首页>JVM内存结构
JVM内存结构
2022-06-21 18:12:00 【山东馍馍】
JVM体系结构

JVM内存结构


程序计数器
- 保存当前执行指令的地址,一旦指令执行,程序计数器将更新到下一条指令
虚拟机栈
- 每个线程运行时所需要的内存空间,称为虚拟机栈
- 每个栈由多个栈帧组成,对应着每次方法调用时所占用的内存
- 每个线程只能有一个活动栈帧,对应着当前正在执行的那个方法
栈帧
- 局部变量表
- 操作数栈
- 动态链接
- 方法返回地址
本地方法栈
- 类似虚拟机栈,线程私有
- 本地方法栈服务于JVM内的native方法
堆
- 用于存放对象的内存区域,是垃圾回收的主要区域
- 堆是被所有线程共享的一块内存区域,在虚拟机启动时创建
- 堆在逻辑上分为新生代和老年代,新生代分为Eden区,ServivorFrom区,ServivorTo区
- Xms Xmx 设置堆的最小内存和最大内存
- jps查看jvm中的进程
- jmap查看某一个时刻的堆内存占用情况 jmap -heap 进程id
- jconsole 图形界面Java性能分析工具
方法区
- 存储每个类的结构
- 例如运行时常量池、字段、方法数据,以及方法和构造函数的代码,包括用于类和实例初始化以及接口初始化的特殊方法

边栏推荐
- 508. Most Frequent Subtree Sum
- CloudCompare&PCL 点云AABB包围盒
- 2022年下半年传统产品经理国际资格认证招生简章(NPDP)
- 机器学习之模型评估与选择
- Notez quelques questions Pat (1)
- [interval and topic prefix and] prefix and + hash table application questions
- QT creator 7.0 frequently asked questions and common usage
- 机器学习之绪论
- R语言glm函数构建二分类logistic回归模型(family参数为binomial)、使用coef函数获取模型系数并解析系数意义
- 转发提醒 MetaMask小狐狸钱包安全公告 如何应对拓展程序潜在的私钥泄露
猜你喜欢

在 KubeSphere 上部署 Apache Pulsar
![[pwn基础]Pwntools学习](/img/72/0f80d2f91d772e361b6d23a67e2ca3.png)
[pwn基础]Pwntools学习

Tensorflow 2: use neural network to classify and compare fashion MNIST

After Hongmeng, Huawei announced that it would donate to Euler again. What impact is expected to be brought to the industry by the donations of Hongmeng and Euler?

剑指 Offer II 029. 排序的循环链表

论文解读(USIB)《Towards Explanation for Unsupervised Graph-Level Representation Learning》

Flink 系例 之 TableAPI & SQL 与 示例模块

转发提醒 MetaMask小狐狸钱包安全公告 如何应对拓展程序潜在的私钥泄露

基于k近邻的MNIST图像分类对比

一种简单的架构设计逻辑|得物技术
随机推荐
When the move protocol beta is in progress, the ecological core equity Momo is divided
记一些PAT题目(一)
[high frequency interview questions] the difficulty is 1.5/5. Common two point double pointer interview questions
W10添加系统环境变量Path
R language uses GLM function to build Poisson regression model, and coef function to obtain the coefficients of Poisson regression model and analyze the effects of various variables
TensorFlow 2:使用神经网络对Fashion MNIST分类并进行比较分析
W10 add system environment variable path
EasyCVR智能边缘网关硬件如何设置通电自启动?
DataGear 使用坐标映射表制作地理坐标数据可视化看板
【区间和专题の前缀和】线段树(动态开点)运用题
Clustering, dimension reduction and measurement techniques for machine learning
播放量高达4000w+,情侣如何靠撒狗粮出圈?
动态规划【二】(线性dp)
API de table & SQL et module d'échantillon pour le système Flink
Jupyter Notebook 将ipynb文件编译成latex再转为pdf
【面试高频题】难度 1/5,难度较低的链表面试题
系统集成项目管理工程师(软考中级)怎么备考?
How to use devaxpress WPF to create the first MVVM application in winui?
Cloudcompare & PCL point cloud point matching (based on European distance)
記一些PAT題目(一)