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

偏执的太偏执、 2023-10-18 15:23 240阅读 0赞
  1. error='Cannot allocate memory' (errno=12)

jvm崩溃, 无法分配内存。

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

产生一个hs_error.log文件

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

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

发表评论

表情:
评论列表 (有 0 条评论,240人围观)

还没有评论,来说两句吧...

相关阅读