Can not configure elastic search when running elasticsearch.bat

warning: ignoring JAVA_HOME=C:\Program Files\Java\jdk-19.0.1; using bundled JDK
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:

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.server.cli.JvmOption.flagsFinal(JvmOption.java:113)
        at org.elasticsearch.server.cli.JvmOption.findFinalOptions(JvmOption.java:80)
        at org.elasticsearch.server.cli.MachineDependentHeap.determineHeapSettings(MachineDependentHeap.java:59)
        at org.elasticsearch.server.cli.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:140)
        at org.elasticsearch.server.cli.JvmOptionsParser.determineJvmOptions(JvmOptionsParser.java:92)
        at org.elasticsearch.server.cli.ServerProcess.createProcess(ServerProcess.java:214)
        at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:108)
        at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:91)
        at org.elasticsearch.server.cli.ServerCli.startServer(ServerCli.java:234)
        at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:91)
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.Command.main(Command.java:50)
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

Welcome to our community! :smiley:

It's not clear what is happening here as you have posted only part of an error with no indication as to what command you are running to get it.

Running elasticsearch.bat

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.