![](/img/trans.png)
[英]After upgrading from jdk1.5 to jdk1.7 Spring beans are not getting depoloyed on JBOSS 4.0.3
[英]OutOfMemoryError getting in websphere application server 6.1 with jdk1.5
native_stdout.log:Exception java.lang.OutOfMemoryError: requested 289064 bytes for Chunk::new. Out of swap space?
native_stdout.log:Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 475344 bytes for Chunk::new. Out of swap space?
native_stdout.log:Exception java.lang.OutOfMemoryError: requested 5242880 bytes for GrET* in /BUILD_AREA/jdk1.5.0_18/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?
native_stdout.log:Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 8744 bytes for unsigned char in /BUILD_AREA/jdk1.5.0_18/hotspot/src/share/vm/code/codeBlob.cpp. Out of swap space?
最有可能的解释是……如错误消息所提示的那样……您的计算机没有交换空间,并且操作系统拒绝为JVM分配更多(虚拟)内存。
在这种情况下,您可以尝试添加更多的交换空间。 例如,参见man swapon
。
另一种可能性是,您的JVM达到了可请求的虚拟内存量的进程资源限制; 见man ulimit
。
在这两种情况下,仅使用-Xmx ...
选项增加JVM的最大堆大小都无济于事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.