# How can I set heap memory for jruby in logstash 7.4?

**URL:** <https://discuss.elastic.co/t/how-can-i-set-heap-memory-for-jruby-in-logstash-7-4/270990>\
**Category:** Logstash\
**Created:** [April 22, 2021, 4:32pm UTC](https://discuss.elastic.co/t/how-can-i-set-heap-memory-for-jruby-in-logstash-7-4/270990 "2021-04-22T16:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [April 22, 2021, 4:32pm UTC](https://discuss.elastic.co/t/how-can-i-set-heap-memory-for-jruby-in-logstash-7-4/270990/1 "2021-04-22T16:32:53Z")

</div>

Hi all,

Please let me know how can I set jruby\_opts for controlling jruby memory which is default 500 mb, I need to control by setting it low and high.

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:** [May 20, 2021, 4:33pm UTC](https://discuss.elastic.co/t/how-can-i-set-heap-memory-for-jruby-in-logstash-7-4/270990/2 "2021-05-20T16:33:28Z")

</div>

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