DATA NODE - DOCKER HEADACHE - Java memory allocation

Hi all,

Hoping you can help, Graylog is stating that the data node is only configured for 1g of RAM in Java.

I can confirm that from HTOP that the variables of “-Xms1g -Xmx1g” can be seen against the datanode.

Now i have both of these inside my DOCKER environment variable.
GRAYLOG_OPENSEARCH_HEAP: “4g”

  GRAYLOG_OPENSEARCH_JAVA_OPTS: “-Xms4g -Xmx4g”

But neither seem to be taking affect.

Any suggestions please?

I’ve tried OPENSEARCH_HEAP and OPENSEARCH_JAVA_OPTS also as environmental variables with docker but with the same outcome. Still only 1g on xms and xmx!

Thanks all!

I’m running Graylog on k8s and had to move the setting directly to the datanode.conf file. It was the only reliable way to set the heap for me.

Thought I might end up there.

Any ideas where the file is in the container to mount to it?

I have it mounted as /etc/graylog/datanode/datanode.conf

The entry is just

opensearch_heap: 1g