.# The system is out of physical RAM or swap space我们已经比需要多了两个数量级。# Check if swap backing store is full# Use 64 bit Java on a 64 bit OStotal: 48607296k bytes allocated +
但是,当它在Solaris中运行时,它总是报告OutOfMemoryError,我注意到就在错误发生之前,它试图使用>4 4GB的虚拟内存,这在32位系统上是绝对不可能的。那么为什么JVM要使用这么多的虚拟内存呢?有没有办法告诉JVM不要使用那么多的虚拟内存?编辑:# Possible reasons:
# The system is out of physical RAM or swapwas