# Logstash - xmx parameter from jvm.properties not read

**URL:** https://discuss.elastic.co/t/logstash-xmx-parameter-from-jvm-properties-not-read/121871
**Category:** Logstash
**Created:** [February 28, 2018, 2:33pm UTC](https://discuss.elastic.co/t/logstash-xmx-parameter-from-jvm-properties-not-read/121871 "2018-02-28T14:33:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [February 28, 2018, 2:33pm UTC](https://discuss.elastic.co/t/logstash-xmx-parameter-from-jvm-properties-not-read/121871/1 "2018-02-28T14:33:24Z")

</div>

Hi,

seems if I made some dumb error, but I do not find it.

I extracted the logstash tar to `/usr/local/elastic/logstash/logstash-6.2.1/`  
I changed `/usr/local/elastic/logstash/logstash-6.2.1/config/jvm.options` to following values:

```
-Xms3g
-Xmx3g

```

Then I start logstash with following command:

```
/usr/local/elastic/logstash/logstash-$LS_VERSION/bin/logstash -f /usr/local/elastic/logstash/conf --path.settings /usr/local/elastic/logstash/logstash-$LS_VERSION/conf $options

```

**$LS\_VERSION** and **$options** are arguments of my start script which are configured before.

after starting ps -ef still shows:

```
logstash 16630 16628 50 14:26 pts/0 00:02:04 /bin/java -Xms256m -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFra...

```

Also monitoring api shows:

```
"mem":{
         "heap_used_percent":42,
         "heap_committed_in_bytes":721715200,
         "heap_max_in_bytes":1038876672,
         "heap_used_in_bytes":437680640,
         "non_heap_used_in_bytes":136939088,
         "non_heap_committed_in_bytes":153436160,
...

```

permissions should also fit:

```
[root@elasticsearch-test logstash-6.2.1]# ls -l config/
total 28
-rw-r--r--. 1 logstash logstash 1846 Feb 28 14:05 jvm.options
-rw-r--r--. 1 logstash logstash 4466 Feb 7 21:13 log4j2.properties
-rw-r--r--. 1 logstash logstash 6346 Feb 7 21:13 logstash.yml
-rw-r--r--. 1 logstash logstash 3244 Feb 7 21:13 pipelines.yml
-rw-r--r--. 1 logstash logstash 1702 Feb 7 21:13 startup.options

```

Any Idea is welcome.  
Thanks a lot, Andreas

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [February 28, 2018, 3:10pm UTC](https://discuss.elastic.co/t/logstash-xmx-parameter-from-jvm-properties-not-read/121871/2 "2018-02-28T15:10:12Z")

</div>

> [@asp](#):
>
> /usr/local/elastic/logstash/logstash-$LS\_VERSION/conf

found the issue here:

typo in path.settings: /usr/local/elastic/logstash/logstash-$LS\_VERSION/conf **ig** is correct

now it works 😉

---

<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 28, 2018, 3:10pm UTC](https://discuss.elastic.co/t/logstash-xmx-parameter-from-jvm-properties-not-read/121871/3 "2018-03-28T15:10:27Z")

</div>

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