JVM crashes with error=‘Cannot allocate memory‘ (errno=12)

Posted 程序员超时空

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JVM crashes with error=‘Cannot allocate memory‘ (errno=12)相关的知识,希望对你有一定的参考价值。

error='Cannot allocate memory' (errno=12)

jvm崩溃, 无法分配内存。

JVM正在尝试分配127926272字节的内存,而空闲物理内存不足,并且交换时没有任何可用内存。

产生一个hs_error.log文件

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e9c80000, 127926272, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 127926272 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/jvm-30998/hs_error.log

参考:https://stackoverflow.com/questions/46801741/jvm-crashes-with-error-cannot-allocate-memory-errno-12#comment80550253_46801741

以上是关于JVM crashes with error=‘Cannot allocate memory‘ (errno=12)的主要内容,如果未能解决你的问题,请参考以下文章

jvm crash分析

iOS常见启动crash

JAVA ,JVM 调试

jdk1.8与glibc的兼容性问题(JVM Crash+C [libc.so.6+0x81980] _IO_link_in+0x1f0)

jdk1.8与glibc的兼容性问题(JVM Crash+C [libc.so.6+0x81980] _IO_link_in+0x1f0)

jdk1.8与glibc的兼容性问题(JVM Crash+C [libc.so.6+0x81980] _IO_link_in+0x1f0)