Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How do I change the JVM memory settings for Knox

avatar
 
1 ACCEPTED SOLUTION

avatar

In the Knox <knox-home>/bin/gateway.sh file (e.g. /usr/hdp/current/knox-server/bin/gateway.sh) you will find a variable that can be populated with JVM memory settings.

APP_MEM_OPTS=""

For example, you could provide the values show below for an initial and max 2GB heap. Knox will need to be restarted for this to take effect.

APP_MEM_OPTS="-Xms2g -Xmx2g"

View solution in original post

1 REPLY 1

avatar

In the Knox <knox-home>/bin/gateway.sh file (e.g. /usr/hdp/current/knox-server/bin/gateway.sh) you will find a variable that can be populated with JVM memory settings.

APP_MEM_OPTS=""

For example, you could provide the values show below for an initial and max 2GB heap. Knox will need to be restarted for this to take effect.

APP_MEM_OPTS="-Xms2g -Xmx2g"