Garbage Collection

In order to maintain its memory use, the Jetstream server needs to clean up unused objects. Garbage collection cleans up the following objects:

  • Manifests
  • Shared links

By default, garbage collection runs hourly, removing objects that have been unused or expired for 48 hours. The garbage collection interval and object timeout limit can be adjusted using the updateGarbageCollectSettings() API function. Garbage collection can be triggered instantly using garbageCollect() API function.

Server’s active garbage collection settings can be read from Garbage Collection Structure from getServerInfo() API function.

Note

Transfers and Destinations are not garbage collected, and are deleted on server restart, or optionally using the deleteTransfer() and deleteDestination() API functions.