Hi I'm using the latest one version of logstash 8.6.0 I meet the same processing error every day for one of pipeline
in the meantime I decreased of count of workers and event and increased heap but still is not enough still get oom, How I can prevent for such cases?
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid1.hprof ...
Heap dump file created [17137852563 bytes in 167.954 secs]
[FATAL] 2023-01-31 11:08:43.217 [[npdb_dns]>worker2] Logstash - uncaught error (in thread [npdb_dns]>worker2)
java.lang.OutOfMemoryError: Java heap space
at org.jruby.RubyString.cat19(org/jruby/RubyString.java:1396) ~[jruby.jar:?]
at org.jruby.RubyString.cat19(org/jruby/RubyString.java:1381) ~[jruby.jar:?]
at org.jruby.ext.stringio.StringIO.stringIOWrite(org/jruby/ext/stringio/StringIO.java:1205) ~[jruby.jar:?]
at org.jruby.ext.stringio.StringIO.write(org/jruby/ext/stringio/StringIO.java:1162) ~[jruby.jar:?]
at java.lang.invoke.LambdaForm$DMH/0x0000000801299000.invokeVirtual(java/lang/invoke/LambdaForm$DMH) ~[?:?]
at java.lang.invoke.LambdaForm$MH/0x00000008012a0c00.invoke(java/lang/invoke/LambdaForm$MH) ~[?:?]
at java.lang.invoke.DelegatingMethodHandle$Holder.delegate(java/lang/invoke/DelegatingMethodHandle$Holder) ~[?:?]
at java.lang.invoke.LambdaForm$MH/0x000000080127bc00.guard(java/lang/invoke/LambdaForm$MH) ~[?:?]
at java.lang.invoke.DelegatingMethodHandle$Holder.delegate(java/lang/invoke/DelegatingMethodHandle$Holder) ~[?:?]
at java.lang.invoke.LambdaForm$MH/0x000000080127bc00.guard(java/lang/invoke/LambdaForm$MH) ~[?:?]
at java.lang.invoke.Invokers$Holder.linkToCallSite(java/lang/invoke/Invokers$Holder) ~[?:?]
at usr.share.logstash.vendor.bundle.jruby.$2_dot_6_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_11_dot_12_dot_1_minus_java.lib.logstash.outputs.elasticsearch.http_client.bulk(/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client.rb:143) ~[?:?]
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java/lang/invoke/DirectMethodHandle$Holder) ~[?:?]
at java.lang.invoke.LambdaForm$MH/0x0000000801f33c00.invoke(java/lang/invoke/LambdaForm$MH) ~[?:?]
at java.lang.invoke.LambdaForm$MH/0x0000000800cad000.invokeExact_MT(java/lang/invoke/LambdaForm$MH) ~[?:?]
at org.jruby.RubyEnumerable$EachWithIndex.call(org/jruby/RubyEnumerable.java:1103) ~[jruby.jar:?]
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1865) ~[jruby.jar:?]
at org.jruby.RubyArray$INVOKER$i$0$0$each.call(org/jruby/RubyArray$INVOKER$i$0$0$each.gen) ~[jruby.jar:?]