# \-XX:OnOutOfMemoryError not working if Elasticsearch starts with -d paramater

**URL:** https://discuss.elastic.co/t/xx-onoutofmemoryerror-not-working-if-elasticsearch-starts-with-d-paramater/193675
**Category:** Elasticsearch
**Created:** [August 4, 2019, 1:09pm UTC](https://discuss.elastic.co/t/xx-onoutofmemoryerror-not-working-if-elasticsearch-starts-with-d-paramater/193675 "2019-08-04T13:09:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Prashant\_Rana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_rana/32/42952_2.png) [@Prashant\_Rana](https://discuss.elastic.co/u/Prashant_Rana)
#### Post date: [August 4, 2019, 1:09pm UTC](https://discuss.elastic.co/t/xx-onoutofmemoryerror-not-working-if-elasticsearch-starts-with-d-paramater/193675/1 "2019-08-04T13:09:03Z")

</div>

Hi,

I am trying to execute a file when **OutOfMemoryError** occurs with -`XX:OnOutOfMemoryError=` option in `jvm.options` file.

If I am starting elasticsearch without " **-d**" parameter from command line(_elasticsearch_) then it is woking and calling the file.

But with the " **-d**" paramater from command line(_elasticsearch -d_) it is not working when ES is going out of memory.

P.S: I have disable the system\_call\_filter `bootstrap.system_call_filter: false`

**ES version: 5.6.4**

---

<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: [September 1, 2019, 1:09pm UTC](https://discuss.elastic.co/t/xx-onoutofmemoryerror-not-working-if-elasticsearch-starts-with-d-paramater/193675/2 "2019-09-01T13:09:04Z")

</div>

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