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:

  1. Stop Studio if it is running.

  2. Create a setenv file:

    • Linux and macOS: Create setenv.sh.

    • Microsoft Windows: Create setenv.bat.

  3. 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"
  4. Save the file in the same directory as your Studio server.sh file, such as datastax-studio/bin/setenv.sh.

  5. Restart Studio to apply the changes.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax, an IBM Company | Privacy policy | Terms of use | Manage Privacy Choices

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