# Can Not Reserve Enough Space For Object Heap

**URL:** <https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498>\
**Category:** Logstash\
**Created:** [July 25, 2017, 2:45pm UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498 "2017-07-25T14:45:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![infamous](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@infamous](https://discuss.elastic.co/u/infamous)\
**Post date:** [July 25, 2017, 2:45pm UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498/1 "2017-07-25T14:45:29Z")

</div>

Hi all,

I've been using Logstash and Elasticsearch for a while now and have survived using a 1g object heap for development. However, I can not get the heap to go over 1150Mb before it says I can not reserve enough space for the heap, and my configurations are becoming more demanding. I first noticed this when trying to use a double logstash input (S3 and file).

All the size tweaking I have been doing has been in logstash jvm.options and elasticsearch setup.bat. I have a user environmental variable set: `_JAVA_OPTIONS => -Xmx2g -Xms2g`

I am running everything on JDK and JRE 1.8.0\_141. PC has 32g of RAM on Windows 7.

Any thoughts?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 26, 2017, 7:46am UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498/2 "2017-07-26T07:46:52Z")

</div>

Do you have a 64-bit JVM?

---

<div class="post-metadata">

**Author:** ![infamous](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@infamous](https://discuss.elastic.co/u/infamous)\
**Post date:** [July 26, 2017, 8:57pm UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498/3 "2017-07-26T20:57:19Z")

</div>

Hey there @magnusbaeck. Yes, am running 64-bit VM. I found the issue, when I set the JAVA\_HOME path after I first downloaded Logstash, I used Program Files (x86) instead of Program Files. Silly silly me. Thanks for the help though!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 1, 2017, 7:10am UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498/4 "2017-08-01T07:10:49Z")

</div>

Well, then you weren't using a 64-bit JVM after all.

---

<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:** [August 29, 2017, 7:11am UTC](https://discuss.elastic.co/t/can-not-reserve-enough-space-for-object-heap/94498/5 "2017-08-29T07:11:20Z")

</div>

Closed on August 29, 2017, 7:11am UTC

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