ob for elasticsearch.service failed because the control process exited with error code.- Solution

As a JVM application, the ElasticSearch main server process only utilizes memory devoted to the JVM. The required memory may depend on the JVM used (32- or 64-bit). The memory used by JVM usually consists of, as a Java application ElasticSearch uses memory allocated to java applications obviously

Heap space in Java is used for dynamic memory allocation for Java objects and JRE classes at the runtime. New objects are always created in heap space and the references to this objects are stored in stack memory.

heap space are configured via -Xms and -Xmx in mbs

sudo nano /etc/elasticsearch/jvm.options

Modify the value of -Xms and -Xmx

Best practise , dont put more that 45% of your RAM

# Xms represents the initial heap space
# Xmx represents the maximum heap space

in case of 1GB let it be

-Xms256m
-Xmx256m

Now restart Elastic Search

sudo systemctl restart elasticsearch


Interoons aim at providing electronically intelligent and comprehensive range of digital marketing solutions that exceed customer expectations. We implement revolutionary digital marketing ideas to achieve a common as well as the aggregate growth of the organization. Long-term customer relations and extended support are maintained.

Leave a Reply

Your email address will not be published. Required fields are marked *

Open chat