Elk Tuning Chapter 1

Source: Internet
Author: User

Reference: http://www.ksearch.cn/search-engine/elasticsearch-config-performance.html



[elasticsearch2.x version of this environment for RPM installation]

The boot parameter java_opts passed to the JVM. The most important parameters are-xmx and-XMS, which are used to control the maximum memory allocated to the ES process and the minimum memory. (Generally, the more memory, the better)

In general, Java_opts uses the default values not to modify, but rather to set and modify JVM configuration parameters by es_java_opts environment variables.

The ES_HEAP_SIZE environment variable is used to set the heap memory of the Java process allocated to ES, set the es_heap_size variable it also sets the minimum and maximum memory. You can also individually set the ES_MIN_MEM, Es_max_mem parameters to determine the minimum and maximum allocated memory.

The minimum and maximum memory settings are recommended to the same value, and the Mlockall switch is turned on.



To modify a file:

/etc/sysconfig/elasticsearch

What to modify:

# Heap size defaults to 256m min, 1g max

# Set Es_heap_size to 50% of available RAM, but no more than 31g

#ES_HEAP_SIZE =2g

es_heap_size=31g




"Modify Results"

Ago:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/80/31/wKioL1c63pLgqfzWAABaghxs6dA130.png "style=" float: none; "title=" Elk_youhua1.png "alt=" Wkiol1c63plgqfzwaabaghxs6da130.png "/>



After:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/34/wKiom1c63arwA7PMAABrX2-SUYo678.png "style=" float: none; "title=" Elk_youhua2.png "alt=" Wkiom1c63arwa7pmaabrx2-suyo678.png "/>


This article is from the "Tridewah operation and maintenance work Road" blog, please be sure to keep this source http://cuidehua.blog.51cto.com/5449828/1774403

Elk Tuning Chapter 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.