阅读背景:

为什么Java使用静态堆而不是允许任意数量的内存?

来源:互联网 

In Java the virtual machine pre-allocates a memory heap which cannot be expanded at runtime. The developer can increase the size of the heap with the -Xmx switch when the VM loads, but there is no way to increase the maximum size of the heap at runtime. Why is this?In Java the virtual machine pre-allocates a mem




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: