English 中文(简体)
为什么要设定一个最低限度的Java Heap Size?
原标题:What s the reason to set a minimal Java Heap Size?

I can set the Java Heap Size minimum and maximum by passing the parameters -Xms and -Xmx, respectively.

我理解,限制空间是必需的最高旗帜,但确定最低初步海平面的理由是什么? 如果上限足够大,空间就会增加? 还是错了什么?

最佳回答

设定最小面积,这样,如果小面积的开始,则联合核查机制就不必“实现”。

问题回答

Java will start with the minimum heap size and will try to avoid enlarging the heap by garbage collecting.

因此,如果贵方的稳定的记忆体积大于缺省最低分位数,那么你在达到这一规模时可以做许多毫无意义的GC。 将矿体大小确定为这种大小将避免无意义的GC。

如果你的申请需要一定数额的操作,你可以确定最低的肥皂面积。 如果你确定最大幅度,则该小数就应该超过。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签