Specify JVM settings for DataStax Studio
Studio enables you to specify JVM command-line options for the local Studio server.
Studio runs with the following default JVM settings:
-
Minimum heap (
Xms
): 256 MB -
Maximum heap (
Xmx
): 4 GB -
Temporary directory (
temp dir
):/tmp
These default values are expressed as follows:
export STUDIO_JVM_ARGS="-Xms256m -Xmx4g -Djava.io.tmpdir=/tmp"
You can adjust them as needed for your environment.
To adjust these settings, do the following:
-
Stop Studio if it is running.
-
Create a
setenv
file:-
Linux and macOS: Create
setenv.sh
. -
Microsoft Windows: Create
setenv.bat
.
-
-
Add your Studio JVM arguments to the
setenv
file using the following format:export STUDIO_JVM_ARGS="JVM_OPTIONS"
For example, to change the maximum heap size to 8 GB, add the following line to the
setenv
file:export STUDIO_JVM_ARGS="$JVM_OPTS -Xmx8g"
-
Save the file in the same directory as your Studio
server.sh
file, such asdatastax-studio/bin/setenv.sh
. -
Restart Studio to apply the changes.