当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- The role of theme music in games
- How to make characters move
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- 华为Mate 40 系列搭载HMS有什么亮点?
- Helping financial technology innovation and development, atfx is at the forefront of the industry
- Multi robot market share solution
- window系统 本机查找端口号占用方法
- Road to simple HTML + JS to achieve the most simple game Tetris
- In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
- How to understand Python iterators and generators?
猜你喜欢
意派Epub360丨你想要的H5模板都在这里,电子书、大转盘、红包雨、问卷调查……
2020-08-30:裸写算法:二叉树两个节点的最近公共祖先。
Multi robot market share solution
Zero basis to build a web search engine of its own
An article taught you to use HTML5 SVG tags
Event monitoring problem
2020-08-20:GO语言中的协程与Python中的协程的区别?
The method of realizing high SLO on large scale kubernetes cluster
Share with Lianyun: is IPFs / filecoin worth investing in?
2020-08-17:详细说下数据倾斜怎么解决?
随机推荐
Elasticsearch Part 6: aggregate statistical query
C and C / C + + mixed programming series 5 - GC collaboration of memory management
2020-08-18:介绍下MR过程?
Description of phpshe SMS plug-in
[forward] how to view UserData in Lua
Using iceberg on kubernetes to create a new generation of cloud original data Lake
An article will introduce you to CSS3 background knowledge
CloudQuery V1.2.0 版本发布
2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
Analysis of serilog source code -- how to use it
What is the tensor in tensorflow?
Kubernetes and OAM to build a unified, standardized application management platform knowledge! (Internet disk link attached)
CCR coin frying robot: the boss of bitcoin digital currency, what you have to know
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
Multi robot market share solution
【涂鸦物联网足迹】涂鸦云平台全景介绍
Take you to learn the new methods in Es5
Markdown tricks
Helping financial technology innovation and development, atfx is at the forefront of the industry
Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election