# Out of memory error while installing logstash-filter-elasticsearch plugin

**URL:** <https://discuss.elastic.co/t/out-of-memory-error-while-installing-logstash-filter-elasticsearch-plugin/130746>\
**Category:** Logstash\
**Created:** [May 6, 2018, 12:44pm UTC](https://discuss.elastic.co/t/out-of-memory-error-while-installing-logstash-filter-elasticsearch-plugin/130746 "2018-05-06T12:44:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadeemaon](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nadeemaon](https://discuss.elastic.co/u/nadeemaon)\
**Post date:** [May 6, 2018, 12:44pm UTC](https://discuss.elastic.co/t/out-of-memory-error-while-installing-logstash-filter-elasticsearch-plugin/130746/1 "2018-05-06T12:44:36Z")

</div>

I am installing logstash-filter-elasticsearch plugin using the command

bin/logstash-plugin install logstash-filter-elasticsearch

And during the installation getting below error

```
logstash-5.6.2\bin\logstash-plugin install logstash-filter-elasticsearch
Validating logstash-filter-elasticsearch
Installing logstash-filter-elasticsearch
Error: Your application used more memory than the safety cap of 500M.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Specify -w for full OutOfMemoryError stack trace
```

---

<div class="post-metadata">

**Author:** ![nadeemaon](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nadeemaon](https://discuss.elastic.co/u/nadeemaon)\
**Post date:** [May 7, 2018, 6:47am UTC](https://discuss.elastic.co/t/out-of-memory-error-while-installing-logstash-filter-elasticsearch-plugin/130746/2 "2018-05-07T06:47:01Z")

</div>

Okay - after digging a bit into the ruby scripts that are being used to install the plugin. I found out that we can reset the max memory by setting up LAVA\_MEM environment variable. Below command will do it on windows platform.

`SET JAVA_MEM="-Xmx1024m"`

This seems to have helped with the memory issue but now I am getting another error.

`Error Bundler::HTTPError, Network error whicle fetching https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz`

This is strange because I am quite sure that I have got internet working after setting the proxy using below command.

`SET HTTPS_PROXY=https://proxyhost.com:1234`

And I could actually download the mentioned resource using a browser and the proxy. Not sure why the bundler is failing to do so.

---

<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:** [June 4, 2018, 6:47am UTC](https://discuss.elastic.co/t/out-of-memory-error-while-installing-logstash-filter-elasticsearch-plugin/130746/3 "2018-06-04T06:47:03Z")

</div>

Closed on June 4, 2018, 6:47am UTC

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