Help Center/ MapReduce Service/ FAQs/ Performance Tuning/ How Do I Configure the knox Memory?
Updated on 2024-08-16 GMT+08:00

How Do I Configure the knox Memory?

  1. Log in to a Master node of the cluster as user root.
  2. Run the following command on the Master node to open the gateway.sh file:

    su omm

    vim /opt/knox/bin/gateway.sh

  3. Change APP_MEM_OPTS="" to APP_MEM_OPTS="-Xms256m -Xmx768m", save the file, and exit.
  4. Run the following command on the Master node to restart the knox process:

    sh /opt/knox/bin/gateway.sh stop

    sh /opt/knox/bin/gateway.sh start

  5. Repeat the preceding steps on each Master node.
  6. Run the ps -ef |grep knox command to check the configured memory.

    Figure 1 knox memory