Seeing io.netty.util.internal.OutOfDirectMemoryError in my logtash logs


Currently I am using 6.4.2 version of Elastic Stack.
Started seeing our logstash docker container exited with code 1. Upon troubleshooting logstash logs notices erros releated to memory.
Exited with Status code 1
{"log":"io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 1036789213, max: 1037959168)\n","stream":"stdout","time":"2020-01-02T20:30:02.927550323Z"}

Assuming its problem with logstash JVM heap size, have increased it from 1GB to 4GB.
My logstash Java options.
LS_JAVA_OPTS: "-Xmx4g -Xms4g"

Still I am seeing same kind of errors.

{"log":"io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 4225105174, max: 4225236992)\n","stream":"stdout","time":"2020-01-09T02:13:38.84879815Z"}

Could anyone please help?

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