Specifying JVM settings for DataStax Studio
About this task
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 Xms
(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
-
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:
export STUDIO_JVM_ARGS="JVM_options"
The default values for Xms (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"
-
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.