Hi,
We're currently running into problems where our Logstash VM is hitting the Java heap-size limit, despite having a large amount of free RAM on the VM.
{"level":"ERROR","loggerName":"logstash.filters.grok","timeMillis":1519212709312,"thread":"Ruby-0-Thread-23: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-grok-4.0.1/lib/logstash/filters/grok/timeout_enforcer.rb:33","logEvent":{"message":"Error while attempting to check/cancel excessively long grok patterns","message":"Java heap space","class":"Java::JavaLang::OutOfMemoryError","backtrace":[]}}
{"level":"ERROR","loggerName":"logstash.filters.grok","timeMillis":1519212711483,"thread":"Ruby-0-Thread-13: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-grok-4.0.1/lib/logstash/filters/grok/timeout_enforcer.rb:33","logEvent":{"message":"Error while attempting to check/cancel excessively long grok patterns","message":"Java heap space","class":"Java::JavaLang::OutOfMemoryError","backtrace":[]}}
{"level":"ERROR","loggerName":"logstash.filters.grok","timeMillis":1519212713736,"thread":"Ruby-0-Thread-90: (eval):8156","logEvent":{"message":"Error while attempting to check/cancel excessively long grok patterns","message":"Java heap space","class":"Java::JavaLang::OutOfMemoryError","backtrace":[]}}
{"level":"ERROR","loggerName":"logstash.filters.grok","timeMillis":1519212715978,"thread":"Ruby-0-Thread-32: /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-grok-4.0.1/lib/logstash/filters/grok/timeout_enforcer.rb:33","logEvent":{"message":"Error while attempting to check/cancel excessively long grok patterns","message":"Java heap space","class":"Java::JavaLang::OutOfMemoryError","backtrace":[]}}
{"level":"ERROR","loggerName":"logstash.filters.grok","timeMillis":1519212718147,"thread":"Ruby-0-Thread-93: (eval):8261","logEvent":{"message":"Error while attempting to check/cancel excessively long grok patterns","message":"Java heap space","class":"Java::JavaLang::OutOfMemoryError","backtrace":[]}}
Is there an easy way to increase the system-wide JVM heap-size for Logstash? For example, are there environmental variables that can be set to do this?
Regards,
Ryan