-Xms JVM在引用堆内存时意味着什么? [英] What does the -Xms JVM mean in reference to heap memory?

查看:159
本文介绍了-Xms JVM在引用堆内存时意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Java堆内存, -Xms 究竟是什么意思?我们运行1024-2048 min-max内存分配。由于一些问题,我们将其从最低2048减少到1728,从1024减去512分钟。

What exactly does -Xms mean in terms of Java heap memory? We are running in a 1024-2048 min-max memory allocation. Due to some issues we turned it down from 2048 to 1728 max and from 1024 to 512 min.

-Xms 影响堆内存分配以及当 -Xms 值减少时,为什么最大内存会减少?

How does -Xms affect heap memory allocation and why does the max memory decrease when -Xms values are decreased?

推荐答案

Xms标志告诉您的JVM初始分配的内存量。如果您的程序需要的内存大于Xms中指定的值,则JVM将占用更多内存,直到Xmx中指定的限制为止。

The Xms flag tells to your JVM the amount of memory for initial allocation. If your program need more memory than the value specified in Xms the JVM will take more memory until the limit specified in Xmx.

请记住,JVM将保留内存量即使您的应用程序不使用它们,也会在Xms中设置。并且它不适用于操作系统,所以你需要考虑让操作系统和其他程序有足够的内存,以便它们可以正常工作。

Remember that the JVM will reserve the amount of memory setted in Xms even if your application don't use them. And it don't be available for OS so you need consider let to the OS and the other programs enough memory in order they can work fine.

这篇关于-Xms JVM在引用堆内存时意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆