我已经在OSX 10.10.5上从Homebrew 安装了gdb公式,以便向weechat的开发人员发送回溯跟踪记录(因为weechat每次安装Homebrew时都会崩溃/exit)。
并在尝试读取核心文件时遇到了这个问题:
gdb /usr/local/bin/weechat /cores/core.70087
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin14.5.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please …Run Code Online (Sandbox Code Playgroud) 我是Elasticsearch的新手,并尝试用它来分析Suricata IPS的数据.头插件告诉我这个:yellow (131 of 262) unassigned shards
也得到这个:
$ curl -XGET http://127.0.0.1:9200/_cluster/health?pretty
{
"cluster_name" : "elasticsearch_brew",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 131,
"active_shards" : 131,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 131,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
Run Code Online (Sandbox Code Playgroud)
如何摆脱那些未分配的碎片?还有Kibana不时地告诉我这个:
Error: Bad Gateway
at respond (https://www.server.kibana/index.js?_b=:85279:15)
at checkRespForFailure (https://www.server.kibana/index.js?_b=:85247:7)
at https://www.server.kibana/index.js?_b=:83885:7
at wrappedErrback (https://www.server.kibana/index.js?_b=:20902:78)
at wrappedErrback (https://www.server.kibana/index.js?_b=:20902:78)
at wrappedErrback (https://www.server.kibana/index.js?_b=:20902:78)
at https://www.server.kibana/index.js?_b=:21035:76
at Scope.$eval (https://www.server.kibana/index.js?_b=:22022:28)
at Scope.$digest (https://www.server.kibana/index.js?_b=:21834:31) …Run Code Online (Sandbox Code Playgroud) 使用 OS X 10.10.4、Homebrew 中的 Elasticsearch 1.6.0,因此服务器在登录时作为启动代理运行:
/usr/local/bin/elasticsearch --config=/usr/local/etc/elasticsearch/elasticsearch.yml
问题:如何设置环境变量 ES_HEAP_SIZE 以使用 2GB RAM?我应该写什么以及在哪个文件中?