XX 的默认值:MaxDirectMemorySize [英] Default for XX:MaxDirectMemorySize

查看:192
本文介绍了XX 的默认值:MaxDirectMemorySize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XX:MaxDirectMemorySize 的默认值是多少?

What is the default value for XX:MaxDirectMemorySize?

推荐答案

来自 http://www.docjar.com/html/api/sun/misc/VM.java.html

我明白了:

 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屋!

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