XX的默认值:MaxDirectMemorySize [英] Default for XX:MaxDirectMemorySize
本文介绍了XX的默认值:MaxDirectMemorySize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
XX:MaxDirectMemorySize的默认值是什么?
What is the default value for XX:MaxDirectMemorySize?
推荐答案
来自我看到了:
163 // A user-settable upper limit on the maximum amount of allocatable direct
164 // buffer memory. This value may be changed during VM initialization if
165 // "java" is launched with "-XX:MaxDirectMemorySize=<size>".
166 //
167 // The initial value of this field is arbitrary; during JRE initialization
168 // it will be reset to the value specified on the command line, if any,
169 // otherwise to Runtime.getRuntime.maxDirectMemory().
170 //
171 private static long directMemory = 64 * 1024 * 1024;
因此它似乎默认为64兆.
so it appears to default to 64 megs.
这篇关于XX的默认值:MaxDirectMemorySize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文