Java Heap Size

Overview

The default minimum and maximum Java VM heap size, as set by default by Elasticsearch, is 1GB. 

Configuring this heap size is important to ensure there is enough heap available for Elasticsearch in a production environment.

More details about Java heap size : https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html

Configure minimum and maximum heap size for your Elasticsearch node

# /opt/configurator/configure
Display only the mandatory entries? (Yn): n
Configure all the modules when finished? (Yn): n

UBIqube SOC Configuration Menu

1: System configuration
2: Web Portal configuration
3: JEntreprise configuration
4: SEC Engine configuration
5: Reports configuration
6: Database configuration
7: Alarms and events notifications
8: SOC Customisation
9: Zero Touch Deployment
10: OSS BSS third party tools integration
11: ElasticSearch configuration

0: save & exit (use CTRL-C to exit without saving)
11

ElasticSearch configuration

1: cluster configuration
2: Web portal (SES and JENTREPRISE)
3: SEC Engine

0: back
1

cluster configuration

1: general
2: network settings
3: retention policy
4: discovery
5: advanced config: breakers and gateway

0: back
1

general

1: name of the elasticsearch cluster for this node (DEV_ES_1622)
2: Version (5.6)
3: ID (integrer) of this elasticsearch node (STANDALONE)
4: set this node as a master node (true)
5: set this node as a data node (true)
6: set the number of shard (split) of an index (1)
7: set the number of replicas of an index. If the cluster is mono-node, this setting is irrelevant (0)
8: set the directory where Elasticsearch will store data (/opt/elasticsearch/data)
9: activate the daily index management script. This script will create the replica if nedded, optimize the index... (true/false) (true)
10: set the minimum java heap size (2g)
11: set the maximum java heap size (2g)

JVM configuration file (MSA 15.3.X / ES1.7 - MSA 16.2.2 / ES2.4)

/etc/sysconfig/elasticsearch

ES_MIN_MEM=$UBI_ES_JAVA_MIN_HEAP_SIZE

ES_MAX_MEM=$UBI_ES_JAVA_MAX_HEAP_SIZE

JVM configuration file (MSA 16.2.2/ES5.6 - 17.1 / ES5.6)

/etc/elasticsearch/jvm.options

-Xms${UBI_ES_JAVA_MIN_HEAP_SIZE}
-Xmx${UBI_ES_JAVA_MAX_HEAP_SIZE}