使用 jdk1.5 进入 websphere 应用程序服务器 6.1 时出现 OutOfMemoryError
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?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最可能的解释是...正如错误消息所暗示的那样...您的计算机交换空间不足,并且操作系统拒绝向 JVM 分配更多(虚拟)内存。
如果是这种情况,您可以尝试添加更多交换空间;例如,请参见
man swapon
。另一种可能性是您的 JVM 达到了其可以请求的虚拟内存量的进程资源限制;请参阅
man ulimit
。无论哪种情况,简单地使用
-Xmx ...
选项增加 JVM 的最大堆大小都没有帮助。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.
If this is the case, you could try adding more swap space; see
man swapon
for example.Another possibility is that your JVM is hitting a process resource limit on the amount of virtual memory it can request; see
man ulimit
.In either case, simply increasing the JVM's max heap size using the
-Xmx ...
option is NOT going to help.