BUG FIX: Elasticsearch is not working and closes immediately

207 0 0 0

Last Updated : 2021-07-24 16:13:13

I tries re-installing Elasticsearch 6.3.0 on my local server, and installed Java JDK, the most recent one, then when I try to start the Elasticsearch from installation folder/6.3.0/bin/elasticsearch.exe the cmd screen opens and immedietely closes. Here is the error : Unrecognized VM option 'UseConcMarkSweepGC'

So, Here are the steps I have made, 



  1. I started to run the file from within the cmd.

  2. This showed me an error : Unrecognized VM option 'UseConcMarkSweepGC'

  3. The reason for this is that VM option is removed from the recent JDK,

  4. So, The solution would be to dowbgrade the Java JDK.

  5. NOTE: You can have two versions on the Java JDK on your machine.

Mohammed Anwar

Mohammed Anwar

Experienced technical lead PHP, MySQL and Laravel Developer for 15+ years, with proven ability to develop and create high-quality and optimized web applications. Great ability to build and optimize database design, schema and queries. Versed programing trainer and instructor delivering web courses and helping others to get into the field in a timely manner. Fast and eager learner for new technologies .