I'm currently using the Logstash Kubernetes Helm chart, linked below:
There doesn't seem to be a way to increase the JVM heap size using the values.yaml file.
I have also tried setting the environment variable
LS_JAVA_OPTS as a parameter in the initial start up of the container by setting it's value to be
LS_JAVA_OPTS="-Xmx4g -Xms2g". I have been able to confirm that this environment variable is set by running
echo $LS_JAVA_OPTS. Its values are not used in the start up of the of the JVM, reflected with this command:
bash-4.2$ ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND logstash 1 191 4.2 6844236 661540 ? Ssl 20:31 1:11 /bin/java -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -
I can't manually edit the file /usr/share/logstash/config/jvm.options because I need to be able to run logstash on start up of the container. Is there any other way to change the JVM Heap size option?