Specifying JVM settings for DataStax Studio

How to specify JVM command-line options for DataStax Studio.

Studio enables you to specify JVM command-line options for the local Studio server. Studio runs with these defaults:
  • min heap 256 MB
  • max heap 4 GB
  • temp dir /tmp
The default values for Xmms (min heap), Xmx (max heap), and temp dir are expressed as:
export STUDIO_JVM_ARGS="-Xms256m -Xmx4g -Djava.io.tmpdir=/tmp"
Adjust as appropriate for your environment.

Procedure

  1. Create a file named setenv.sh for Linux operating systems (setenv.bat for Windows).
  2. Add the content for the JVM arguments to pass to Studio.

    The format of the content is:

    export STUDIO_JVM_ARGS="JVM_options"
    The default values for Xmms (min heap), Xmx (max heap), and tmpdir are:
    export STUDIO_JVM_ARGS="-Xms256m -Xmx4g -Djava.io.tmpdir=/tmp"
    For example, to change the maximum heap size to 8 GB:
    export STUDIO_JVM_ARGS="$JVM_OPTS -Xmx8g"
  3. Save the file in the same directory as the Studio server.sh file.
    For example: datastax-studio/bin/setenv.sh
  4. Restart Studio to use the JVM options.