当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Zero basis to build a web search engine of its own
- window系统 本机查找端口号占用方法
- In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
- Zero basis to build a web search engine of its own
- 常用SQL语句总结
- list转换map(根据key来拆分list,相同key的value为一个list)
- An article will introduce you to HTML tables and their main attributes
- 【学习】接口测试用例编写和测试关注点
- mongo 用户权限 登录指令
- Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election
猜你喜欢

递归、回溯算法常用数学基础公式

Road to simple HTML + JS to achieve the most simple game Tetris

What the hell is fastthreadlocal? The existence of ThreadLocal!!

大会倒计时|2020 PostgreSQL亚洲大会-中文分论坛议程安排

An article will take you to understand CSS3 fillet knowledge

ERD-ONLINE 免费在线数据库建模工具

ES6 learning notes (4): easy to understand the new grammar of ES6

Summary of front-end interview questions (C, s, s) that front-end engineers need to understand (2)

检测证书过期脚本

What kind of music do you need to make for a complete game?
随机推荐
意外的元素..所需元素..
【学习】接口测试用例编写和测试关注点
Those who have worked in China for six years and a million annual salary want to share these four points with you
In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
What course of artificial intelligence? Will it replace human work?
华为Mate 40 系列搭载HMS有什么亮点?
An article will introduce you to CSS3 background knowledge
2020-09-09:裸写算法:两个线程轮流打印数字1-100。
Can you do it with only six characters?
Contract trading system development | construction of smart contract trading platform
What the hell is fastthreadlocal? The existence of ThreadLocal!!
An article taught you to download cool dog music using Python web crawler
An article takes you to understand CSS3 picture border
Zero basis to build a web search engine of its own
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
How does filecoin's economic model and future value support the price of fil currency breaking through thousands
2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
Building a new generation cloud native data lake with iceberg on kubernetes
迅为-iMX6ULL开发板上配置AP热点
2020-09-04:函数调用约定了解么?