Graylo6 container java heap size

hi i have set up a docker compose version of graylog 6
The java heap on the new node is showing max 1.98G but i have set the min heap in GRAYLOG_SERVER_JAVA_OPTS as 3G in the docker compose file and I can see this in the running container using docker inspect
“Env”: [
“GRAYLOG_ROTATION_STRATEGY = count”,
"GRAYLOG_TRUSTED_PROXIES= xxxx
“GRAYLOG_REPORT_DISABLE_SANDBOX= true”,
“GRAYLOG_SERVER_JAVA_OPTS = -Xms3g -Xmx4g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:-OmitStackTraceInFastThrow”,
“GRAYLOG_HTTP_BIND_ADDRESS= 0.0.0.0:9000”,

Why is this not being implemented by graylog container?

  • OS Information:
    ubuntu 22 and docker compose

Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]

Do both nodes use the same docker compose file with only the Graylog version changed, I can see the v5 node appears to have the correct heap assigned.

Thanks for replying. The graylog 5 is not a container. It is a pre-existing version that I am going to replace with graylog 6, they are both using the same mongodb and opensearch external installs. both have the save java heap config.
Peter

If you are using Docker desktop, I think by default it is setup to use 2GB of memory which yours appears to adhere to (assuming you have not already) try altering this to more closely match the resources available.

no desktop … command line and vi. Are you suggesting that its a docker restriction and not graylog??

docker docs say there are no default restrictions
“By default, a container has no resource constraints and can use as much of a given resource as the host’s kernel scheduler allows.”