Can’t increase heap size for graylog when running via docker-compose
2. Describe your environment:
i use debian 11 and
Docker version 20.10.5+dfsg1, build 55c4c88
docker-compose version 1.25.0, build unknown
image graylog/graylog:5.2 from docker hub
my docker-compose:
version: "3.3"
services:
graylog:
image: graylog/graylog:5.2
hostname: graylog-web01
container_name: graylog
depends_on:
- mongodb
network_mode: host
entrypoint: "/docker-entrypoint.sh"
environment:
- "GRAYLOG_NODE_ID_FILE=/usr/share/graylog/data/data/node-id"
- "GRAYLOG_PASSWORD_SECRET=secret"
- "GRAYLOG_ROOT_PASSWORD_SHA2=secret"
- "GRAYLOG_HTTP_EXTERNAL_URI=link"
- "GRAYLOG_HTTP_PUBLISH_URI=link"
- "GRAYLOG_MONGODB_URI=mongodb replicaset"
- "GRAYLOG_ELASTICSEARCH_HOSTS=elastic"
- "GRAYLOG_IS_LEADER=true"
- "GRAYLOG_TRUSTED_PROXIES=0.0.0.0/0"
- "GRAYLOG_SERVER_JAVA_OPTS=-Xms12288m -Xmx12288m -XX:NewRatio=1 -XX:MaxMetaspaceSize=256m -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow"
volumes:
- graylog:/usr/share/graylog/data
restart: always
logging:
driver: json-file
options:
max-size: "30m"
max-file: "1"
graylog:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/graylog'
i used parameters from Graylog JVM Heapsize on Docker-compose - #4 by aaronsachs
I want to increase the heap size to 12Gb
- Service logs, configurations, and environment variables:
2024-05-22 10:06:07,208 INFO : org.graylog2.bootstrap.CmdLineTool - Running with JVM arguments: -Dlog4j2.formatMsgNoLookups=true -Djdk.tls.acknowledgeCloseNotify=true -XX:+UnlockExperimentalVMOptions -XX:-OmitStackTraceInFastThrow -XX:+UseG1GC -Dlog4j.configurationFile=/usr/share/graylog/data/config/log
4j2.xml -Djava.library.path=/usr/share/graylog/lib/sigar/ -Dgraylog2.installation_source=docker