简体   繁体   English

OutOfMemoryError使用jdk1.5进入Websphere Application Server 6.1

[英]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?

The most likely explanation is ... as the error messages suggest ... your machine is out of swap space, and the operating system is refusing to allocate more (virtual) memory to the JVM. 最有可能的解释是……如错误消息所提示的那样……您的计算机没有交换空间,并且操作系统拒绝为JVM分配更多(虚拟)内存。

If this is the case, you could try adding more swap space; 在这种情况下,您可以尝试添加更多的交换空间。 see man swapon for example. 例如,参见man swapon

Another possibility is that your JVM is hitting a process resource limit on the amount of virtual memory it can request; 另一种可能性是,您的JVM达到了可请求的虚拟内存量的进程资源限制; see man ulimit . man ulimit

In either case, simply increasing the JVM's max heap size using the -Xmx ... option is NOT going to help. 在这两种情况下,仅使用-Xmx ...选项增加JVM的最大堆大小都无济于事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM