Error Message
[ec2-user@es-data01 bin]$ OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
ERROR: [1] bootstrap checks failed
[1]: initial heap size [1048576000] not equal to maximum heap size [2097152000]; this can cause resize pauses and prevents mlockall from locking the entire heap
ERROR: Elasticsearch did not exit normally - check the logs at /home/ec2-user/elasticsearch-7.6.0/logs/devopsschool.logCode language: JavaScript (javascript)
Solutions
Setting the parameter -Xms to the same value of -Xmx in /etc/elasticsearch/jvm.options solved the problem 🙂 Thanks
export ES_HEAP_SIZE=2024m
echo $ES_HEAP_SIZE
export ES_JAVA_OPTS="-Xms1000m -Xmx2000m" /home/ec2-user/elasticsearch-7.6.0/bin/elasticsearch
$ cd /home/ec2-user/elasticsearch-7.6.0/config
$ vi jvm.options # Make -Xmx1g to -Xmx1g
$ more /home/ec2-user/elasticsearch-7.6.0/config/jvm.options | grep Xm
CLIENT
.........
-Xms1g
-Xmx1g
Master
........
-Xms2g
-Xmx2g
DATA
.......
-Xms1g
-Xmx1gCode language: PHP (php)I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals