[2024-08-16T07:54:27,150][FATAL][org.logstash.Logstash ] uncaught error (in thread pool-701-thread-1)
java.lang.OutOfMemoryError: Java heap space
I will be running one pipeline. Haven't changed any default settings.
pipeline.batch.size: 125
pipeline.batch.delay: 50
Please suggest how to replicate this issue and how to solve this in dev environment.
Hi,
Please take a look at the documentation:
You can use the jvm.options
file to set JVM settings like -Xmx
to increase the heap size. I think the default is 1GB, so you may try to increase this as per your needs.
Best regards
Wolfram
1 Like
Thanks @Wolfram_Haussig.
Just to understand more. The system is not providing logstash 1G of heap memory or logstash needs more than 1 GB of memory.
By default -Xms
(minimum heap) and -Xmx
(maximum heap) are set to the same value and this is also recommended. This means that Logstash would fail at startup if it cannot claim the required heapsize.
From the log message, I assume that the error occurs at runtime which means that your Logstash instance needs a larger heap.