当前位置: 代码迷 >> 综合 >> Java HotSpot(TM) 64-Bit Server VM warning:
  详细解决方案

Java HotSpot(TM) 64-Bit Server VM warning:

热度:33   发布时间:2023-12-16 02:02:04.0

启动logstash报错:

[root@localhost logstash-6.6.0]# ./bin/logstash -f ./config/wyh-logstash.conf
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000, 986513408, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 986513408 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/wyh/elk-kafka/logstash-6.6.0/hs_err_pid6715.log

解决方案:

进入logstash目录下,修改config下的jvm.options中的红框部分,将原值改为512m

  相关解决方案