# Logstash insufficient memory for java runtime env

**URL:** <https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705>\
**Category:** Logstash\
**Created:** [June 22, 2021, 9:33pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705 "2021-06-22T21:33:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IsAa](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@IsAa](https://discuss.elastic.co/u/IsAa)\
**Post date:** [June 22, 2021, 9:33pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/1 "2021-06-22T21:33:49Z")

</div>

Hi ELK Users,

I am wondering if anyone has come across this issue when running logstash

```auto
PS C:\Program Files\ELK\logstash-7.13.1\bin> .\logstash.bat -f C:\Program Files\ELK\logstash-7.13.1\config\logstash-test-std.conf
Using JAVA_HOME defined java: C:\Program Files\Java\jdk-14.0.1
WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1073741824 bytes for Failed to commit area from 0x00000000c0000000 to 0x0000000100000000 of length 1073741824.
# An error report file with more information is saved as:

```

I haven't worked with Java before. Was wondering is someone has some suggestions for me to work around this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 22, 2021, 10:14pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/2 "2021-06-22T22:14:13Z")

</div>

> [@IsAa](#):
>
> `error='The paging file is too small for this operation to complete' (DOS error/errno=1455)`

The JVM is trying to allocate 1 GB of memory and the OS is saying it cannot do that. Increasing the size of the page file might help.

---

<div class="post-metadata">

**Author:** ![IsAa](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@IsAa](https://discuss.elastic.co/u/IsAa)\
**Post date:** [June 22, 2021, 10:41pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/3 "2021-06-22T22:41:43Z")

</div>

I am on a VM.

Increased the size of it.

Is running fine now.

Thanks for the help 😃

---

<div class="post-metadata">

**Author:** ![IsAa](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@IsAa](https://discuss.elastic.co/u/IsAa)\
**Post date:** [July 7, 2021, 9:01pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/4 "2021-07-07T21:01:52Z")

</div>

Hi,

Just wondering how to increase the size of the page file.  
Is it one of the options on the logstash.yml

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 7, 2021, 9:19pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/5 "2021-07-07T21:19:35Z")

</div>

> [@IsAa](#):
>
> Is it one of the options on the logstash.yml

No, it is nothing to do with logstash. It is a Windows operating system feature. You can read more [here](https://www.tomshardware.com/news/how-to-manage-virtual-memory-pagefile-windows-10,36929.html).

The size of the page file limits the amount of memory that can be allocated in ways I am not inclined to expound upon here.

---

<div class="post-metadata">

**Author:** ![IsAa](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@IsAa](https://discuss.elastic.co/u/IsAa)\
**Post date:** [July 7, 2021, 9:23pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/6 "2021-07-07T21:23:10Z")

</div>

ok got you.  
Will look this up.  
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:** [August 4, 2021, 9:23pm UTC](https://discuss.elastic.co/t/logstash-insufficient-memory-for-java-runtime-env/276705/7 "2021-08-04T21:23:55Z")

</div>

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