# Logstash as a container hosted on docker

**URL:** <https://discuss.elastic.co/t/logstash-as-a-container-hosted-on-docker/132332>\
**Category:** Logstash\
**Created:** [May 17, 2018, 12:40pm UTC](https://discuss.elastic.co/t/logstash-as-a-container-hosted-on-docker/132332 "2018-05-17T12:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaurav\_Agarwal](https://discuss.elastic.co/u/Gaurav_Agarwal)\
**Post date:** [May 17, 2018, 12:40pm UTC](https://discuss.elastic.co/t/logstash-as-a-container-hosted-on-docker/132332/1 "2018-05-17T12:40:33Z")

</div>

Hello I am new to logstash and presently m configuration runs as a conatiner hosted on docker.

But I am getting this error  
Your application used more memory than the safety cap of 1G.  
Specify -J-Xmx####m to increase it (#### = cap size in MB).  
Specify -w for full OutOfMemoryError stack trace

Please let me know the possible solution for this.

Regards  
Gaurav

---

<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 14, 2018, 12:40pm UTC](https://discuss.elastic.co/t/logstash-as-a-container-hosted-on-docker/132332/2 "2018-06-14T12:40:47Z")

</div>

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