# java.lang.OutOfMemoryError: Java heap space

**URL:** <https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space/259773>\
**Category:** Logstash\
**Created:** [December 29, 2020, 6:40am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space/259773 "2020-12-29T06:40:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rknd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rknd/32/103882_2.png) [@rknd](https://discuss.elastic.co/u/rknd)\
**Post date:** [January 9, 2021, 8:18am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space/259773/4 "2021-01-09T08:18:36Z")

</div>

Yes I ve miss typed that. But I have changed it to 8g and also try 10g but still have same issue.

> [@java.lang.OutOfMemoryError: Java heap space in Logstash](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-in-logstash/260596):
>
> I have too many configuration files. I run these files together via pipelines.yml. I use these types of settings likewise below; - pipeline.id: pipeline1 path.config: "path\_to\_pipeline1" - pipeline.id: pipeline2 path.config: "path\_to\_pipeline2" - pipeline.id: pipeline3 path.config: "path\_to\_pipeline3" ..... I set JVM HeapSize as 10gb with the configuration below; (I have also tried 8gb and I have 16gb ram) -Xms10g -Xmx10g If I run my pipelines one by one. It works perfectly but when …

---

_[View the full topic](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space/259773)._
