# Unrecognized VM option 'UseConcMarkSweepGC'

**URL:** <https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960>\
**Category:** Logstash\
**Created:** [February 20, 2021, 9:44pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960 "2021-02-20T21:44:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 9:44pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/1 "2021-02-20T21:44:41Z")

</div>

C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\bin\>logstash -f logstash-simple.conf  
Using JAVA\_HOME defined java: C:\Program Files\Java\jdk-15.0.2  
WARNING, using JAVA\_HOME while Logstash distribution comes with a bundled JDK  
Unrecognized VM option 'UseConcMarkSweepGC'  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 20, 2021, 9:48pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/2 "2021-02-20T21:48:25Z")

</div>

Java 15 is not [supported](https://www.elastic.co/support/matrix#matrix_jvm). You can edit the jvm.options file and try it anyway, or unset JAVA\_HOME to use the bundled JDK.

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 10:23pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/3 "2021-02-20T22:23:50Z")

</div>

can you guide me how to do that steps.. I am zero in java or its options..

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 10:46pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/4 "2021-02-20T22:46:10Z")

</div>

I added exception seeing github but now getting below:

C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\bin\>logstash -f logstash-simple.conf  
Using JAVA\_HOME defined java: C:\Program Files\Java\jdk-15.0.2  
WARNING, using JAVA\_HOME while Logstash distribution comes with a bundled JDK  
Sending Logstash logs to C:/elastic\_stack/logstash-7.11.1-windows-x86\_64/logstash-7.11.1/logs which is now configured via log4j2.properties  
2021-02-21 04:10:01,262 main ERROR No ScriptEngine found for language JavaScript. Available languages are: ruby, jruby  
2021-02-21 04:10:01,293 main ERROR No ScriptEngine found for language JavaScript. Available languages are: ruby, jruby  
2021-02-21 04:10:01,426 main ERROR No ScriptEngine found for language JavaScript. Available languages are: ruby, jruby  
[2021-02-21T04:10:01,488][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.11.1", "jruby.version"=\>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 15.0.2+7-27 on 15.0.2+7-27 +indy +jit [mswin32-x86\_64]"}  
[2021-02-21T04:10:01,645][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2021-02-21T04:10:03,090][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=\>"C:/elastic\_stack/logstash-7.11.1-windows-x86\_64/logstash-7.11.1/bin/logstash-simple.conf"}  
[2021-02-21T04:10:03,109][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.  
[2021-02-21T04:10:03,827][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2021-02-21T04:10:08,514][INFO][logstash.runner] Logstash shut down.  
[2021-02-21T04:10:08,795][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]  
at C\_3a\_.elastic\_stack.logstash\_minus\_7\_dot\_11\_dot\_1\_minus\_windows\_minus\_x86\_64.logstash\_minus\_7\_dot\_11\_dot\_1.lib.bootstrap.environment.(C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\lib\bootstrap\environment.rb:89) ~[?:?]

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 20, 2021, 10:48pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/5 "2021-02-20T22:48:25Z")

</div>

As I said, Java 15 is not supported, so I am not going to address how it fails. Unset JAVA\_HOME before running logstash.

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 10:49pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/6 "2021-02-20T22:49:14Z")

</div>

If i unset java\_home will it not affect elasticsearch and kibana which are already running well?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 20, 2021, 10:53pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/7 "2021-02-20T22:53:13Z")

</div>

Elasticsearch supports Java 15 so there is no need to unset JAVA\_HOME for that. Just unset it for logstash.

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 11:10pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/8 "2021-02-20T23:10:59Z")

</div>

Thank you.. Java issue fixed but some new issue now:

C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\bin\>logstash -f logstash-simple.conf  
"Using bundled JDK: ""  
Sending Logstash logs to C:/elastic\_stack/logstash-7.11.1-windows-x86\_64/logstash-7.11.1/logs which is now configured via log4j2.properties  
[2021-02-21T04:38:41,374][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.11.1", "jruby.version"=\>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 11.0.8+10 on 11.0.8+10 +indy +jit [mswin32-x86\_64]"}  
[2021-02-21T04:38:42,717][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2021-02-21T04:38:44,359][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=\>"C:/elastic\_stack/logstash-7.11.1-windows-x86\_64/logstash-7.11.1/bin/logstash-simple.conf"}  
[2021-02-21T04:38:44,407][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.  
[2021-02-21T04:38:45,219][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2021-02-21T04:38:50,572][INFO][logstash.runner] Logstash shut down.  
[2021-02-21T04:38:51,788][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]  
at C\_3a\_.elastic\_stack.logstash\_minus\_7\_dot\_11\_dot\_1\_minus\_windows\_minus\_x86\_64.logstash\_minus\_7\_dot\_11\_dot\_1.lib.bootstrap.environment.(C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\lib\bootstrap\environment.rb:89) ~[?:?]

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 11:16pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/9 "2021-02-20T23:16:05Z")

</div>

i am using this inside conf file for logstash:

input { stdin { } }  
output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
stdout { codec =\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 20, 2021, 11:18pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/10 "2021-02-20T23:18:24Z")

</div>

> [@realtech2338](#):
>
> C:\elastic\_stack\logstash-7.11.1-windows-x86\_64\logstash-7.11.1\bin\>logstash -f logstash-simple.conf  
> ...  
> [logstash.config.source.local.configpathloader] No config files found in path {:path=\>"C:/elastic\_stack/logstash-7.11.1-windows-x86\_64/logstash-7.11.1/bin/logstash-simple.conf"}

You are running logstash in `C:\elastic_stack\logstash-7.11.1-windows-x86_64\logstash-7.11.1\bin`, and telling it to use the configuration file logstash-simple.conf, so it looks for the file in that directory, and it does not exist. Use the full path to the configuration file for the -f option.

---

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [February 20, 2021, 11:26pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/11 "2021-02-20T23:26:55Z")

</div>

thank you very much. It was actually spelling mistake. Thank you very much. removing java path, reboot fixed the issue. I used config from here [Configuring Logstash | Logstash Reference [7.11] | Elastic](https://www.elastic.co/guide/en/logstash/current/configuration.html)

Also I new, pls suggest what can i do next to learn as a cyber security analyst. thanks once again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2021, 11:27pm UTC](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/264960/12 "2021-03-20T23:27:04Z")

</div>

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