Elastic Search increase memory/heap
2016-01-07 16:11
190 查看
https://www.elastic.co/guide/en/elasticsearch/guide/current/_limiting_memory_usage.html
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
有时候ES会爆内存不够的Exception,这时候就需要增加系统分配给ES的内存。
增加的方法 1.设置系统环境变量
ES_HEAP_SIZE 3g
ES_MIN_MEM 3g
ES_MAX_MEM 3g
或者设置.elasticsearch.bat(用nodepad打开)
找到
%elasticsearch_home%/bin/service.bat
foundJVM
if "%ES_MIN_MEM%" == "" set ES_MIN_MEM=3g
if "%ES_MAX_MEM%" == "" set ES_MAX_MEM=3g
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
有时候ES会爆内存不够的Exception,这时候就需要增加系统分配给ES的内存。
增加的方法 1.设置系统环境变量
ES_HEAP_SIZE 3g
ES_MIN_MEM 3g
ES_MAX_MEM 3g
或者设置.elasticsearch.bat(用nodepad打开)
找到
%elasticsearch_home%/bin/service.bat
foundJVM
if "%ES_MIN_MEM%" == "" set ES_MIN_MEM=3g
if "%ES_MAX_MEM%" == "" set ES_MAX_MEM=3g
相关文章推荐
- 架构之路(五):忘记数据库
- 【leetcode】:Range Sum Query - Immutable
- [leetcode] 24. Swap Nodes in Pairs 解题报告
- BaseActivity--上门啦
- Linux内核笔记--深入理解文件描述符
- 一个人练口语的经典方法
- GCD的顺序下载
- PhotoView的用法
- ESXi开启SNMP服务
- TCL QUHD引行业遐想,中国有望成为显示行业绝对霸主
- JAVA 多态
- js正则
- Intents and Intent Filters全解析
- MySQL导数据
- PullToRefreshListView加载更多定位的解决方法
- CentOS下安装两个或多个Tomcat7
- 浅析Sql Server参数化查询
- lintcode: search for a range 搜索区间
- 自定义UI(由下而上版)之第二阶段
- MySQL学习笔记之二:源码编译安装和二进制格式安装MariaDB