Modifying Default Container Configuration
This page explains how to adjust JVM memory settings and provide additional startup flags for Stardog containers.
Configuring Memory Settings
If needed, you can change the default JVM memory settings for Stardog by setting the STARDOG_SERVER_JAVA_ARGS
environment variable like so:
docker run -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 \
-e STARDOG_SERVER_JAVA_ARGS="-Xmx8g -Xms8g -XX:MaxDirectMemorySize=12g" stardog/stardog
Configuring memory settings is discussed in greater detail in the Memory Usage section. It’s noted here for your reference if you are running Stardog via Docker.
Providing Options to the Server at Startup Time
As mentioned earlier, the server start
command gets invoked when executing docker run
. Often times, you may need to provide additional options to the server at startup time like enabling Stardog to accept SSL connections.
These additional options can be appended to the end of the docker run
command like so:
docker run -it -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 stardog/stardog --enable-ssl
For more on running Stardog over SSL within a Docker container, see this page.