I’m going mad - Graylog

oldBastard

Expert Member
Joined
Jul 28, 2006
Messages
4,764
Reaction score
1,250
Location
Somewhere near your mom
I think I’m going mad

Getting Graylog up in docker, the host as 7Gig memory, but the keep getting following error

Code:
Data Node Heap Size Warning
(triggered 15 minutes ago)
There are data node nodes in the cluster which could potentially run with a higher configured heap size for better performance.
Data node datanode only has 1 GB Java Heap assigned, out of a total of 7 GB RAM.
Currently, there is 6 GB free memory available on the node. We recommend to make an additional half of this available to the Java Heap.
Note: For production performance, it is recommended to configure this node to use 3 GB Java Heap (50% of RAM).
The Java Heap can be configured using the opensearch_heap configuration parameter in the node's configuration file (datanode.conf).

Have set in the datanode container env

Code:
OPENSEARCH_JAVA_OPTS: "-Xms3g -Xmx3g”

Code:
GRAYLOG_DATANODE_OPENSEARCH_HEAP_SIZE: “3g”

Even mapped datanode.conf with

Code:
opensearch_heap_size = 3g

Yet keep getting the Heap size warning.

Am I missing something?

Code:
docker exec -it graylog-datanode-1 ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0   2788   964 ?        Ss   20:41   0:00 tini -- /entrypoint.sh graylog-datanode
graylog        7  6.8  8.5 6841520 698744 ?      Sl   20:41   0:26 /usr/share/graylog-datanode/jvm/bin/java -Dlog4j.configurationFile=file:///etc/graylog/datanode/log4j2.xml -Xms1g -Xmx1g -
graylog      443 22.1 20.7 7248512 1687248 ?     Sl   20:41   1:23 /usr/share/graylog-datanode/dist/opensearch-2.15.0-linux-x64/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.t
root         881  0.0  0.0   7064  1536 pts/0    Rs+  20:47   0:00 ps aux
 
Source: https://community.graylog.org/t/increasing-jvm-heap-size/15748
There are two JVM Heap sizes, one for Elasticsearch and one for Graylog. The one you are looking at in web UI is JVM of the Graylog which can be configured in /etc/default/graylog-server file, under GRAYLOG_SERVER_JAVA_OPTS variable. For example to set 1.5GB, change -Xms and -Xmx values to -Xms1536m -Xmx1536m.
 
Top
Sign up to the MyBroadband newsletter
X