在centos 上同时运行logtash和elasticsearch时。只能运行其中一个,另一个老是被killed。
logstashbao'报错如下
Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
大致意思是无法利连接到elasticsearch。
以为是配置的问题,找了大半天。
突然惊奇会不会是由于我的腾讯云服务器内存只有1G。内存不够引起的?遂加1G虚拟内存,结果成功跑起来~