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

  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 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"
  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.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com