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​