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

启动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

Java HotSpot(TM) 64-Bit Server VM warning:_第1张图片

你可能感兴趣的:(elk)