Reputation: 3032
Was troubleshooting ES and figured I would try and upgrade to 7.10.2:
Dans-MacBook-Pro:~ aximus$ brew services restart elasticsearch
Stopping `elasticsearch`... (might take a while)
==> Successfully stopped `elasticsearch` (label: homebrew.mxcl.elasticsearch)
==> Successfully started `elasticsearch` (label: homebrew.mxcl.elasticsearch)
The start-up fails:
Dans-MacBook-Pro:~ aximus$ tail -f /usr/local/var/log/elasticsearch.log
error:
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
I have tried to re-install and link openjdk@11 (11.0.10) with no success. Currently dead in the water:
Dans-MacBook-Pro:~ aximus$ curl 127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
Upvotes: 3
Views: 7431
Reputation: 3762
In extension to Dan Tappin's answer. If the Elasticsearch is not installed but is being run from unzipped/tared location. The above file is located in elasticsearch-x.x.x/config/ folder. Commenting out the above will work (tested with ES version 5.5.1)
Upvotes: 0
Reputation: 3032
Stumbled across a related issue and realized that this was in my /usr/local/etc/elasticsearch/jvm.options
file:
## GC configuration
#-XX:+UseConcMarkSweepGC
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnly
Commented these out and now it's all good 👍
Upvotes: 9