# Java heapspace issue while running logstash

**URL:** <https://discuss.elastic.co/t/java-heapspace-issue-while-running-logstash/234601>\
**Category:** Logstash\
**Created:** [May 27, 2020, 6:29pm UTC](https://discuss.elastic.co/t/java-heapspace-issue-while-running-logstash/234601 "2020-05-27T18:29:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [May 27, 2020, 7:31pm UTC](https://discuss.elastic.co/t/java-heapspace-issue-while-running-logstash/234601/3 "2020-05-27T19:31:42Z")

</div>

@Badger i have 3 different filters configured,

```
filter
       {
         json { source => "message" }
         split { field => "results" }
       prune { blacklist_names => ["command", "host", "message"] }
} 

```

This is my document,

```
"results": [
        {
            "IPAddress": "1.9.7.2",
            "Caption": "APPV1",
            "NodeID": 1,
            "DNS": "appv1.global.com",
            "Vendor": "Windows",
            "Location": "",
            "MachineType": "Windows 2016 Server",
            "StatusDescription": "Node status is Up, One or more application monitors is Down, Intel(R) 82574L Gigabit Network Connection #2 · eth2 is in an Unknown state, One or more AppInsight for IIS monitors is in an Unknown state.",
            "Status": 1,
            "Severity": 5001,
            "TotalMemory": 6.871887E+10,
            "PercentMemoryUsed": 30,
            "CPUCount": 25,
            "CPULoad": 28,
            "LastBoot": "2020-05-26T14:25:00.0000000",
            "StatusLED": "Up.gif "
        },

```

If i try to ingest 2000 documents its working, when the count goes above 2000 then its throwing error.

Thanks  
Gautham

---

_[View the full topic](https://discuss.elastic.co/t/java-heapspace-issue-while-running-logstash/234601)._
