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
export STUDIO_JVM_ARGS="-Xms256m -Xmx4g -Djava.io.tmpdir=/tmp"
Adjust
as appropriate for your environment.Procedure
- Create a file named setenv.sh for Linux operating systems (setenv.bat for Windows).
-
Add the content for the JVM arguments to pass to Studio.
The format of the content is:
The default values for Xmms (min heap), Xmx (max heap), and tmpdir are:export STUDIO_JVM_ARGS="JVM_options"
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"
-
Save the file in the same directory as the Studio
server.sh file.
For example: datastax-studio/bin/setenv.sh
- Restart Studio to use the JVM options.