I am running Logstash 7.9.1 with 24 GB of maximum heap size configured in a Linux machine with 30 GB Memory and configured a pipeline to run a python program with Logstash exec plugin I see the below error message in logs.
Error while running command {:command=>"/usr/bin/python3 /opt/logstash/config/sql.py", :e=>#<Errno::ENOMEM: Cannot allocate memory - /usr/bin/python3>,
I did observe total JVM utilization is less than 15 GB. Below is my Logstash input configuration
input {
exec {
command => "/usr/bin/python3 /opt/logstash/config/sql.py"
interval => 180
}
}