当前位置:网站首页>JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M
JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M
2020-11-06 21:19:00 【The mystery of heaven】
stay linux When configuring the project running environment under the environment , The deployment personnel will allocate memory , To ensure the normal operation of the program . In fact, during the development (window System ), Memory allocation is already involved , It's just that these parameters have default values , So I didn't pay attention to it .
With Myeclipse For example , stay Preferences->Java->Installed JREs below , There are settings jvm Memory allocation .
Here we can configure memory , Generally, what we see is
-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
linux In general, it is :
-vmargs -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
But what exactly does this string mean , Here's to explain .
According to the official statement :Java The virtual machine has a heap (Heap), The heap is the runtime data area , Memory for all class instances and arrays is allocated from here . The pile is in Java Created when the virtual machine starts , stay JVM Memory outside the heap is called non heap memory (Non-heap memory).
Simply put : The pile is java Code accessible memory , What developers write is heap allocated memory ( Except for the underlying implementation ). And non heap memory is JVM For your own use , such as JVM Internal processing or optimization , Garbage disposal , Constant pool, etc .
Memory allocation for heap -Xms and -Xmx
-Xms Allocate heap minimum memory , Default to physical memory 1/64;-Xmx Allocate maximum memory , Default to physical memory 1/4.
Heap is not used to allocate memory -XX:PermSize and -XX:MaxPermSize
-XX:PermSize Allocate non heap minimum memory , Default to physical memory 1/64;-XX:MaxPermSize Allocate non heap maximum memory , Default to physical memory 1/4.
therefore , Reasonable memory allocation is the basis of normal and stable operation of the program . Otherwise, the memory overflow will be troublesome .
版权声明
本文为[The mystery of heaven]所创,转载请带上原文链接,感谢
边栏推荐
- 2020年第四届中国 BIM (数字建造)经理高峰论坛即将在杭举办
- 2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
- Visual rolling [contrast beauty]
- Xmppmini project details: step by step from the principle of practical XMPP technology development 4. String decoding secrets and message package
- git远程库回退指定版本
- mongo 用户权限 登录指令
- 2020年数据库技术大会助力技术提升
- Tron smart wallet PHP development kit [zero TRX collection]
- In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
- 2020-08-17:详细说下数据倾斜怎么解决?
猜你喜欢
Use modelarts quickly, zero base white can also play AI!
2020-08-20:GO语言中的协程与Python中的协程的区别?
What is the tensor in tensorflow?
The legality of IPFs / filecoin: protecting personal privacy from disclosure
Can you do it with only six characters?
Ronglian completed US $125 million f round financing
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
An article will take you to understand CSS alignment
Helping financial technology innovation and development, atfx is at the forefront of the industry
MRAM高速缓存的组成
随机推荐
解决 WPF 绑定集合后数据变动界面却不更新的问题
面试官: ShardingSphere 学一下吧
es创建新的索引库并拷贝旧的索引库 实践亲测有效!
C and C / C + + mixed programming series 5 - GC collaboration of memory management
The method of realizing high SLO on large scale kubernetes cluster
2020-08-18:介绍下MR过程?
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
美团内部讲座|周烜:华东师范大学的数据库系统研究
谷歌浏览器实现视频播放加速功能
2020-09-04:函数调用约定了解么?
What is the purchasing supplier system? Solution of purchasing supplier management platform
mongo 用户权限 登录指令
Application of restful API based on MVC
window系统 本机查找端口号占用方法
迅为-iMX6ULL开发板上配置AP热点
统计项目代码行数
Why is quicksort so fast?
ES中删除索引的mapping字段时应该考虑的点
2020-09-09:裸写算法:两个线程轮流打印数字1-100。
Application insights application insights use application maps to build request link views