当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- ES6 learning notes (2): teach you to play with class inheritance and class objects
- With this artifact, quickly say goodbye to spam messages
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
- From overseas to China, rancher wants to do research on container cloud market
- 统计项目代码行数
- 【ElasticSearch搜索引擎】
- CloudQuery V1.2.0 版本发布
- 【涂鸦物联网足迹】涂鸦云平台全景介绍
- What the hell is fastthreadlocal? The existence of ThreadLocal!!
猜你喜欢
An article will take you to understand CSS3 fillet knowledge
Digital city responds to relevant national policies and vigorously develops the construction of digital twin platform
实用工具类函数(持续更新)
ado.net和asp.net的关系
git远程库回退指定版本
行为型模式之备忘录模式
How much disk space does a new empty file take?
2020-08-14:数据任务的执行引擎用的哪些?
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
Multi robot market share solution
随机推荐
Use modelarts quickly, zero base white can also play AI!
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:王涛
What is the purchasing supplier system? Solution of purchasing supplier management platform
检测证书过期脚本
2020-08-17:详细说下数据倾斜怎么解决?
2020-08-18:介绍下MR过程?
行为型模式之解释器模式
window系统 本机查找端口号占用方法
2020-08-15:什么情况下数据任务需要优化?
Zero basis to build a web search engine of its own
谷歌浏览器实现视频播放加速功能
In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
Elasticsearch Part 6: aggregate statistical query
Kubernetes and OAM to build a unified, standardized application management platform knowledge! (Internet disk link attached)
Why is the LS command stuck when there are too many files?
git远程库回退指定版本
ES6 learning notes (5): easy to understand ES6's built-in extension objects
Why is quicksort so fast?
ERD-ONLINE 免费在线数据库建模工具