# Java Heap Space

**URL:** <https://discuss.elastic.co/t/java-heap-space/225496>\
**Category:** Logstash\
**Created:** [March 28, 2020, 3:34pm UTC](https://discuss.elastic.co/t/java-heap-space/225496 "2020-03-28T15:34:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hariskhalique](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@hariskhalique](https://discuss.elastic.co/u/hariskhalique)\
**Post date:** [March 28, 2020, 3:34pm UTC](https://discuss.elastic.co/t/java-heap-space/225496/1 "2020-03-28T15:34:47Z")

</div>

Hi,  
I am getting OutOfMemoryError following are the JVM sizes  
\> intx CompilerThreadStackSize = 0 {pd product}  
\> uintx ErgoHeapSizeLimit = 0 {product}  
\> uintx HeapSizePerGCThread = 87241520 {product}  
\> uintx InitialHeapSize := 260046848 {product}  
\> uintx LargePageHeapSizeThreshold = 134217728 {product}  
\> uintx MaxHeapSize := 4158652416 {product}  
\> intx ThreadStackSize = 1024 {pd product}  
\> intx VMThreadStackSize = 1024 {pd product}

I am running logstash with multiple pipeline. I have three logstash conf file. Each will fetch data from mysql database and put in Elasticsearch.

Data is huge its like a 40 millions record for each conf file fetching. let me share my pipelines.yml file.

- pipeline.id: morph\_styles

> path.config: "/home/ubuntu/dev/V4QaShop/logstash/morph\_styles.conf"  
> pipeline.workers: 1
> 
> - pipeline.id: demo\_morph\_styles  
> path.config: "/home/ubuntu/dev/V4QaShop/logstash/demo\_morph\_styles.conf"  
> pipeline.workers: 3
> - pipeline.id: product\_detail  
> path.config: "/home/ubuntu/dev/V4QaShop/logstash/products\_detail.conf"  
> queue.type: persisted

every config file schedule to 10 sec but its delay that I can not effort data will be sync in every second. What should I do I need help.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 28, 2020, 5:36pm UTC](https://discuss.elastic.co/t/java-heap-space/225496/2 "2020-03-28T17:36:49Z")

</div>

> [@hariskhalique](#):
>
> I am getting OutOfMemoryError

Enable a heap dump when you run out of memory. Analyze the heap dump with a memory analyzer (personally I like [Eclipse MAT](https://www.eclipse.org/mat/)). Tell us what the leak candidates are, what OS you are on, and what JVM you are using (java -version).

---

<div class="post-metadata">

**Author:** ![hariskhalique](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@hariskhalique](https://discuss.elastic.co/u/hariskhalique)\
**Post date:** [March 30, 2020, 3:46pm UTC](https://discuss.elastic.co/t/java-heap-space/225496/3 "2020-03-30T15:46:08Z")

</div>

Following are the detail of my server

> No LSB modules are available.  
> Distributor ID: Ubuntu  
> Description: Ubuntu 16.04.3 LTS  
> Release: 16.04  
> Codename: xenial

Java version is

> openjdk version "1.8.0\_242"  
> OpenJDK Runtime Environment (build 1.8.0\_242-8u242-b08-0ubuntu3~16.04-b08)  
> OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

I am looking for heap dump unable to find meaning full information

---

<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:** [April 27, 2020, 3:46pm UTC](https://discuss.elastic.co/t/java-heap-space/225496/4 "2020-04-27T15:46:42Z")

</div>

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