Stardog Academy Training FAQ:
Database Administration

Stardog uses both JVM memory (heap memory) and also the operating system memory outside the JVM (direct or native memory). Out of the box, Stardog sets the maximum JVM memory to 2GB and direct memory to 1GB which works fine for most small databases (less than 100 million triples) but should be increased as recommended here for larger datasets.
See the Administrating Stardog 101 for more complete guidelines to follow when provisioning your Stardog server. Allocating disk and memory are covered in more detail.

Stardog’s server log is stardog.log which can be found inside your $STARDOG_HOME directory. The stardog.log can be configured via log4j2. A default log4j2.xml can be found in the <stardog-installation-directory>/server/dbms directory. You can copy this file to your $STARDOG_HOME directory to make any modifications you’d like (e.g. log rotation). To find out more about Access, Audit and Slow Query logging, see Stardog Docs.

The stardog-admin log print command prints the contents of an access or audit log. See the stardog-admin log print CLI Reference here.

- A logical backup saves the contents of a database into a standard RDF file. Click here for details on logical backups.
- A database backup saves the contents of a database along with its metadata including user and role permissions. Click here for details on database backups.
- A server backup will back up the entire Stardog server, all databases, and associated metadata. Unlike database backups, which take a full backup of the database every time it is run, server backup takes an incremental backup of the data. Click here for server backup details.