# Need help about starting logstash-8.11.2

**URL:** <https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125>\
**Category:** Logstash\
**Created:** [December 12, 2023, 9:32am UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125 "2023-12-12T09:32:54Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 9:32am UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/1 "2023-12-12T09:32:54Z")

</div>

I installed Logstash by downloading and unzipping the zip file from the official website  
and it occurs an error about JDK ,

Using bundled JDK: /opt/logstash-8.11.2/jdk  
Unrecognized VM option 'UseConcMarkSweepGC'  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

I tried to clean JAVA\_HOME and it doesn't work.  
I used the same way to install it on another machine, it worked just fine

What should I do?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [December 12, 2023, 11:06am UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/2 "2023-12-12T11:06:28Z")

</div>

Hi @AlexLWei,

Which Java JDKs do you have installed on the non-working machine versus working machine in addition to the bundled JDK?

There is a similar issue [here](https://discuss.elastic.co/t/unrecognized-vm-option-useconcmarksweepgc/254534/2) suggesting that it's down to the JDK version.

---

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 12:40pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/3 "2023-12-12T12:40:36Z")

</div>

THANKS FOR REPLAY!  
The non-working machine have not install any jdk yet, and basa on the log generated by starting logstash, they use the logststash's JDK which bundled with logstash program, and the path is {logstash\_root\_path}/jdk

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/8/0804fca5d22701f3c01454cc478b2dca15836f52.png)

I use some simple commands(java / java -version / javac) to test if this JDK is available, and they work just fine.

BTW,the JDK version is 17.0.9

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 12, 2023, 1:15pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/4 "2023-12-12T13:15:12Z")

</div>

Can you copy full error lines from the logstash-plain.log file?

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [December 12, 2023, 1:17pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/5 "2023-12-12T13:17:14Z")

</div>

> [@AlexLWei](#):
>
> Using bundled JDK: /opt/logstash-8.11.2/jdk  
> Unrecognized VM option 'UseConcMarkSweepGC'  
> Error: Could not create the Java Virtual Machine.  
> Error: A fatal exception has occurred. Program will exit.

Hi,

Ensure that the JAVA\_HOME environment variable is not set. If it's set, it might be pointing Logstash to use a different version of Java. You can unset it with the command `unset JAVA_HOME`.

Check the `jvm.options` file in the `config` directory of your Logstash installation. This file contains options that are passed to the JVM. Ensure that the 'UseConcMarkSweepGC' option is not present in this file.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 12, 2023, 1:23pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/6 "2023-12-12T13:23:32Z")

</div>

> [@AlexLWei](#):
>
> Using bundled JDK: /opt/logstash-8.11.2/jdk  
> Unrecognized VM option 'UseConcMarkSweepGC'

Can you share the command line you are using to run Logstash?

If you are using the bundled jdk you should not get this error with the default java configurations.

---

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 1:23pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/7 "2023-12-12T13:23:56Z")

</div>

It does not generate log files, instead, it directly outputs to the terminal  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae3646f799a59345eda63b041a09954c00a29f1c.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 12, 2023, 1:25pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/8 "2023-12-12T13:25:40Z")

</div>

Do you have another logstash installed on this machine? Does the path `/etc/logstash` exists?

---

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 1:26pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/9 "2023-12-12T13:26:21Z")

</div>

yes, I think exactly as you said, and I use the same way to install on another machine, it works without any error

---

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 1:30pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/10 "2023-12-12T13:30:56Z")

</div>

yes, I just found somethine in this path, I tried to install logstash using rpm package before, but it ended with an error and I thought it might have failed to install it.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/3/93ab2eb540202f312e849dbd19802911f3feb8e4.png)

---

<div class="post-metadata">

**Author:** ![AlexLWei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexlwei/32/129740_2.png) [@AlexLWei](https://discuss.elastic.co/u/AlexLWei)\
**Post date:** [December 12, 2023, 1:33pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/11 "2023-12-12T13:33:25Z")

</div>

GOD! you are my SAVIOR!  
Since I removed these files, it works!

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 12, 2023, 1:36pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/12 "2023-12-12T13:36:23Z")

</div>

If you installed the same version this shouldn't be an error also as the `jvm.options` would be the same.

Unless you installed a different version or the `jvm.options` was edited.

The issue was that your logstash on `/opt/logstash-8.11.2` was using a different `jvm.option` where the file have the options in this way:

```auto
-XX:+UseConcMarkSweepGC

```

The correct `jvm.options` needs to have the option in this way:

```auto
11-13:-XX:+UseConcMarkSweepGC

```

---

<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:** [December 12, 2023, 6:18pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/13 "2023-12-12T18:18:10Z")

</div>

It is hard to see how you could have a jvm.options dated Jun 14 2020 in a successful 8.11.2 rpm install without also having a jvm.options.rpmnew

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 12, 2023, 8:12pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/14 "2023-12-12T20:12:08Z")

</div>

How about to go for fresh install 8.11.3? Make backup and install 8.11.3.

---

<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:** [January 9, 2024, 8:12pm UTC](https://discuss.elastic.co/t/need-help-about-starting-logstash-8-11-2/349125/15 "2024-01-09T20:12:29Z")

</div>

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