# Logstash does not start on windows 10

**URL:** <https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583>\
**Category:** Logstash\
**Created:** [February 27, 2018, 2:48am UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583 "2018-02-27T02:48:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srini724](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@srini724](https://discuss.elastic.co/u/srini724)\
**Post date:** [February 27, 2018, 2:48am UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583/1 "2018-02-27T02:48:39Z")

</div>

Hi -

I have logstash installed on windows 10 laptop.When I try to execute logstash using the command below , nothing happens and all see is the message below.

logstash -f logstash.conf --config.test\_and\_exit  
warning: ignoring JAVA\_OPTS=-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0 -Xms32m -Xmx64m ; pass JVM parameters via LS\_JAVA\_OPTS

Here is my conf file which is stored in bin directory.

input  
{  
file  
{  
path=\>"D:/ELK\_STACK/DATA/INPUT/input.log"  
start\_position=\>"beginning"  
}  
}

output {  
file {  
path =\> "D:/ELK\_STACK/DATA/OUTPUT/output.log"  
codec =\> rubydebug  
}  
}

I have ued --config.debug on command line , but get the same message shown above.I have logstash 6.2.2 . I tried using 5.6.8 and got exact same message .Any Idea what I might be missing ?Any help is highly appreciated.

Thank you  
Sri

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 27, 2018, 7:01am UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583/2 "2018-02-27T07:01:38Z")

</div>

If you actually want to start Logstash rather than just test the syntax of the configuration and exit then don't use the `--config.test_and_exit` option.

---

<div class="post-metadata">

**Author:** ![srini724](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@srini724](https://discuss.elastic.co/u/srini724)\
**Post date:** [February 28, 2018, 3:41pm UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583/3 "2018-02-28T15:41:44Z")

</div>

Hi magnusbaek - Thank you for your response. I wanted to test the configuration , so I was using --config.test\_and\_exit . I also tried removing that and nothing happens.

---

<div class="post-metadata">

**Author:** ![Mohammed\_Sanaulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammed_sanaulla/32/22921_2.png) [@Mohammed\_Sanaulla](https://discuss.elastic.co/u/Mohammed_Sanaulla)\
**Post date:** [March 6, 2018, 10:36am UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583/4 "2018-03-06T10:36:19Z")

</div>

Even I am facing the same issue.

On Logstash 5.5

```
logstash-5.5.0\bin>logstash
JAVA_OPTS was set to [-Xms3g -Xmx3g -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -
XX:+UseParNewGC]. Logstash will trust these options, and not set any defaults that it might usually set
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 
8.0
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 
9.0 and will likely be removed in a future release.
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

```

But on Logstash 5.6.8:

```
logstash-5.6.8\bin>logstash
warning: ignoring JAVA_OPTS=-Xms3g -Xmx3g -XX:MaxPermSize=256M -XX:+UseConcMarkSweepGC -
XX:+UseParNewGC; pass JVM parameters via LS_JAVA_OPTS

```

This means that `logstash` command for logstash 5.6.8 isn't recognised on Windows 10 while 5.5.0 is recognised.

---

<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:** [April 3, 2018, 10:36am UTC](https://discuss.elastic.co/t/logstash-does-not-start-on-windows-10/121583/5 "2018-04-03T10:36:31Z")

</div>

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