jvm堆设置模式 [英] jvm heap setting pattern

查看:147
本文介绍了jvm堆设置模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在设置堆大小时观察到人们更喜欢值64,128,256,1024 ..如果我在这些数字之间给出一个值(比如说500),jvm会不接受这个值?为什么这些数字是重要的和首选的?为什么我们也以这种模式升级RAM。

Hello everybody, I have observed while setting heap size people prefer the values 64,128,256,1024.. . If I give a value in- between these numbers (say 500), won't jvm accept that value ? Why these numbers are important and preferred ? Why we also upgrade RAM in this pattern.

请帮助我理解。

提前致谢,
Habin

Thanks in advance, Habin

推荐答案

JVM将接受任何值,没问题。使用2 ^ n值只是一个约定,使用其他值将在实践中没有负面影响。

JVM will accept any value, no problem with that. Using 2^n values is just a "convention", using others will have no negative effect in practice.

这篇关于jvm堆设置模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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