# Heapsize Elastic + Logstash on same node

**URL:** <https://discuss.elastic.co/t/heapsize-elastic-logstash-on-same-node/179507>\
**Category:** Elasticsearch\
**Created:** [May 3, 2019, 9:38am UTC](https://discuss.elastic.co/t/heapsize-elastic-logstash-on-same-node/179507 "2019-05-03T09:38:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcusCaepio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcuscaepio/32/32458_2.png) [@MarcusCaepio](https://discuss.elastic.co/u/MarcusCaepio)\
**Post date:** [May 3, 2019, 9:38am UTC](https://discuss.elastic.co/t/heapsize-elastic-logstash-on-same-node/179507/1 "2019-05-03T09:38:13Z")

</div>

Hi all,  
when I am running Elasticsearch and Logstash both on the same node and want to give them the max usable heap size, is it possible to give them both 32GB (or rather 26 GB as its defined save in the docs) or do I have to give them 16GB (13GB) each, in view of the 32GB JVM heap size limit?

Thanks in advance,  
Marcus

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 6, 2019, 12:11am UTC](https://discuss.elastic.co/t/heapsize-elastic-logstash-on-same-node/179507/2 "2019-05-06T00:11:41Z")

</div>

There's not a whole bunch of value for giving Logstash that sized heap.

You are better off giving Elasticsearch the larger heap size.

---

<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 3, 2019, 12:11am UTC](https://discuss.elastic.co/t/heapsize-elastic-logstash-on-same-node/179507/3 "2019-06-03T00:11:47Z")

</div>

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