通过2GB堆成员创建了文件大小为42 MB的Elasticsearch索引文档

时间:2018-10-29 16:21:00

标签: elasticsearch

我正在尝试为一个42 MB的文档编制索引,并且我看到堆中使用了超过2GB的内存。

>> ls -l data.json
-rw-r--r--@ 1 user  Network\Domain Users  42798016 Oct 29 11:03 data.json

>> curl -XPOST http://localhost:9200/my-index/my-type -d data.json
curl: (52) Empty reply from server

以下是来自Elasticsearch的错误

2018-10-29T12:02:42,583][WARN ][o.e.m.j.JvmGcMonitorService] [Cfr4bRu] [gc][1665] overhead, spent [3.3s] collecting in the last [3.6s]
[2018-10-29T12:02:46,386][WARN ][o.e.m.j.JvmGcMonitorService] [Cfr4bRu] [gc][1666] overhead, spent [3.2s] collecting in the last [3.8s]
[2018-10-29T12:02:50,038][WARN ][o.e.m.j.JvmGcMonitorService] [Cfr4bRu] [gc][1667] overhead, spent [3.2s] collecting in the last [3.6s]
[2018-10-29T12:02:53,110][WARN ][o.e.m.j.JvmGcMonitorService] [Cfr4bRu] [gc][1668] overhead, spent [3s] collecting in the last [3s]
[2018-10-29T12:02:56,683][WARN ][o.e.m.j.JvmGcMonitorService] [Cfr4bRu] [gc][1669] overhead, spent [3.5s] collecting in the last [3.5s]
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid93445.hprof ...
Heap dump file created [2900298449 bytes in 37.716 secs]

我该如何解决?

0 个答案:

没有答案