当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Junit测试出现 empty test suite
- 【:: 是什么语法?】
- (2) ASP.NET Core3.1 Ocelot routing
- Summary of front-end performance optimization that every front-end engineer should understand:
- A small goal in 2019 to become a blog expert of CSDN
- What knowledge do Python automated testing learn?
- What is the tensor in tensorflow?
- From overseas to China, rancher wants to do research on container cloud market
- An article will take you to understand SVG gradient knowledge
- Zero basis to build a web search engine of its own
猜你喜欢
An article will take you to understand CSS3 fillet knowledge
The native API of the future trend of the front end: web components
window系统 本机查找端口号占用方法
2020年数据库技术大会助力技术提升
IPFs rudder filecoin landing at the same time, fil currency price broke a thousand
2020-08-14:数据任务的执行引擎用的哪些?
jenkins安装部署过程简记
Isn't data product just a report? absolutely wrong! There are university questions in this category
细数软件工程----各阶段必不可少的那些图
What course of artificial intelligence? Will it replace human work?
随机推荐
Summary of front-end performance optimization that every front-end engineer should understand:
The native API of the future trend of the front end: web components
ES中删除索引的mapping字段时应该考虑的点
Some operations kept in mind by the front end foundation GitHub warehouse management
CCR coin frying robot: the boss of bitcoin digital currency, what you have to know
ES6 learning notes (2): teach you to play with class inheritance and class objects
Why is quicksort so fast?
What knowledge do Python automated testing learn?
Application insights application insights use application maps to build request link views
How does cglib implement multiple agents?
Gather in Beijing! The countdown to openi 2020
git远程库回退指定版本
MongoDB与SQL常用语法对应表
An article will introduce you to HTML tables and their main attributes
All the way, I was forced to talk about C code debugging skills and remote debugging
[byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!
Use modelarts quickly, zero base white can also play AI!
CloudQuery V1.2.0 版本发布
2020-08-18:介绍下MR过程?
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术