使用-Xmx标志时,如果给定的参数超出物理内存会发生什么? [英] When using -Xmx flag, what happens if the argument given exceed physical memory?
问题描述
使用-Xmx标志时,如果给定的参数超出物理内存会发生什么?
When using -Xmx flag, what happens if the argument given exceed physical memory?
还有什么方法可以通过分页使JVM显式使用特定数量的内存?
Also is there any way to explicitly make JVM to use a specific amount of memory using paging?
推荐答案
亲眼看看:
JVM无法为堆获取足够的内存并退出.
JVM fails in getting enough memory for the heap and exits.
我不认为有一种方法可以使JVM使用特定数量的内存进行分页,但是您可以使用:
I don't think there is a way to make JVM use a specific amount of memory for paging, but you can use:
-XX:+|-UseLargePages
-用于大页面支持
和-XXLargePageSizeInBytes=<n>
-用于指定大页面的大小.
and -XXLargePageSizeInBytes=<n>
--for specifying how large your large pages can be.
查看 http://docs.oracle .com/javase/7/docs/technotes/tools/solaris/java.html
这篇关于使用-Xmx标志时,如果给定的参数超出物理内存会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!