Can not increase memory/heap in graylog server?

Hi all, I have a 3 node server graylog cluster( version 7.0.1) . And all servers report memory/heap usage too high, like this:

So, i refered docs:Additional Configuration, adding

GRAYLOG_SERVER_JAVA_OPTS=“-Xms8g -Xmx8g -server -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow”

in /etc/graylog/server/server.conf ,and restart graylog server. But still, the web report 2g.

So, anything I missed? Thanks!

Hey @baalkchina,

Remove the option from the server.conf and edit it here /etc/default/graylog-server (or /etc/sysconfig if redhat) instead.

It works! Thank you. The docs maybe modify…

1 Like

It seems the docs list this too.

Graylog server: Set the heap value in graylog-server, found at:

  • /etc/default/graylog-server for DEB-based packages

  • /etc/sysconfig/graylog-server for RPM-based packages

This file is a text file that you can generally open and update directly by adding the minimum and maximum heap size. It is recommended that you set the both values to be the same, so a typical setting might look like:

GRAYLOG_SERVER_JAVA_OPTS=“-Xms2g -Xmx2g -server -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow”

1 Like

Yes your are right…sorry for missed…:joy_cat:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.