在EC2上运行Logstash错误='无法分配内存'

问题描述

我一直在微实例上运行logstash并设置了

在.bashrc中导出LS_JAVA_OPTS =“-xms1g -Xmx1g -XX:ParallelGCThreads = 1”

到目前为止,它已经工作了一段时间,并出现以下错误

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000,986513                               408,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 memor                               y.

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) Failed to map 986513408 bytes for committing reserved memory.



Memory: 4k page,physical 1009132k(152316k free),swap 0k(0k free)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)