# java.lang.OutOfMemoryError: Java heap space (logstash, http\_poller)

**URL:** <https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-logstash-http-poller/335935>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [June 14, 2023, 6:39am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-logstash-http-poller/335935 "2023-06-14T06:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [June 14, 2023, 6:39am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-logstash-http-poller/335935/1 "2023-06-14T06:39:55Z")

</div>

Hi  
I run logstash to fetch data from infludb via http\_poller and return below error:  
`java.lang.OutOfMemoryError: Java heap space`

Here is the jvm.options:

```auto
-Xms10g
-Xmx10g

```

Now question is: data locate on influxdb are huge, and need http poller send it in small chunk not all of them once.

http\_poller has this feature?  
Any alternative options?

Thanks

---

<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:** [July 12, 2023, 6:40am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-logstash-http-poller/335935/2 "2023-07-12T06:40:54Z")

</div>

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