博客
关于我
Elasticsearch学习(四)docker 已经存在的es容器了,但是重新启动之后,一直启动不了,内存不足问题
阅读量:717 次
发布时间:2019-03-21

本文共 468 字,大约阅读时间需要 1 分钟。

查看日志的方法是使用命令 docker logs -f elasticsearch。在使用IK分词器时,分词器的版本和Elasticsearch的版本必须一致,否则可能会出现兼容性问题。因此,需要下载与Elasticsearch版本对应的分词器版本。以下是获取IK分词器的方法:

您可以通过以下链接获取对应版本的分词器:https://github.com/medcl/elasticsearch-analysis-ik/releases。选择与Elasticsearch版本匹配的分词器包,如elasticsearch-analysis-ik-6.8.4.zip进行下载。

为了避免内存问题,可以在运行容器时设置内存限制。例如:

docker run --name=es  -e "ES_JAVA_OPTS=-Xms512m -Xmx512m"  -d -p 9200:9200 -p 9300:9300 elasticsearch:6.8.4

这样可以为Elasticsearch分配512MB的初始内存和最大内存,确保其正常运行。

转载地址:http://rmsrz.baihongyu.com/

你可能感兴趣的文章
Prometheus实战教程:监控Nginx状态
查看>>
prometheus常用exporter下载地址大全
查看>>
Prometheus快速搭建与监控Linux系统实战
查看>>
prometheus报警与恢复告警的格式
查看>>
Pytorch中安装 torch_geometric 详细图文操作(全)
查看>>
prometheus监控docker容器实战
查看>>
Prometheus监控k8s集群使用邮箱和微信告警!
查看>>
Prometheus监控mysq数据库实战
查看>>
prometheus监控nginx实战
查看>>
Prometheus监控redis数据库实战
查看>>
Prometheus监控教程:使用Grafana展示主机基本信息
查看>>
pytorch中如何使用预训练词向量
查看>>
Prometheus监控教程:使用PromQL查询监控数据(上篇)
查看>>
Prometheus监控教程:使用PromQL查询监控数据(下篇)
查看>>
Pytorch中关于forward函数的理解与用法
查看>>
Prometheus监控教程:安装部署
查看>>
Prometheus监控教程:配置介绍
查看>>
Pytorch中tqdm进度条的使用
查看>>
Prometheus(2):SpringBoot 2.X集成Prometheus
查看>>
Promise 原理解析与实现(遵循Promise/A+规范)
查看>>